/* ============================================================
   Nelson Ruiz Pinilla — Main Stylesheet
   Premium legal website — Navy/Gold palette
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  --navy: #0d1b2a;
  --navy-mid: #162336;
  --navy-light: #1e3050;
  --gold: #c9a84c;
  --gold-light: #e4c97e;
  --gold-pale: #f5e9c8;
  --cream: #faf7f0;
  --white: #ffffff;
  --gray: #8a9bb0;
  --text-body: #d0dae8;
  --error: #e74c4c;
  --success: #4caf50;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.8rem 4rem;
  background: rgba(13, 27, 42, 0.97);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-logo span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 400;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(30,48,80,0.8) 0%, transparent 50%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem 7rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.hero-name strong { font-weight: 600; color: var(--gold-light); }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gray);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 440px;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* --- HERO VISUAL --- */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  animation: fadeIn 1.2s 0.6s forwards;
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%),
              linear-gradient(to right, transparent 0%, black 15%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%),
                      linear-gradient(to right, transparent 0%, black 15%, black 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.hero-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--navy) 0%, transparent 100%);
  pointer-events: none;
}

.hero-credential-badge {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  background: rgba(13,27,42,0.9);
  border: 1px solid rgba(201,168,76,0.3);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.hero-credential-badge .cred-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.hero-credential-badge .cred-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}

/* --- BUTTONS --- */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(201,168,76,0.4);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  transform: translateY(-2px);
}

/* --- SECTIONS --- */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 6rem 4rem; }

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-tag::before { content: ''; width: 30px; height: 1px; background: var(--gold); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1.5rem 0 2.5rem;
}

/* --- SERVICES GRID --- */
#servicios { background: var(--navy-mid); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 4rem;
  background: rgba(201,168,76,0.1);
}

.service-card {
  background: var(--navy);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.4s ease;
}

.service-card:hover { background: var(--navy-light); }
.service-card:hover::after { width: 100%; }

.service-card.primary-area {
  border-top: 2px solid var(--gold);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,168,76,0.12);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}

.service-card:hover .service-num { color: rgba(201,168,76,0.25); }

.service-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--gray);
  font-weight: 300;
}

.service-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(201,168,76,0.2);
}

/* Secondary services */
.secondary-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1.5px;
  background: rgba(201,168,76,0.06);
}

.secondary-service-card {
  background: var(--navy);
  padding: 2rem 2rem;
  transition: background 0.3s;
}

.secondary-service-card:hover { background: var(--navy-light); }

.secondary-service-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.secondary-service-card p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--gray);
  font-weight: 300;
}

/* --- ABOUT / EXPERIENCE --- */
#sobre-mi { background: var(--navy); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.about-badge-icon { font-size: 1.5rem; }
.about-badge-text {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  font-weight: 500;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-body);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
  font-weight: 400;
}

/* --- TIMELINE --- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1));
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.3);
}

.timeline-years {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.7;
}

/* --- EDUCATION --- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.edu-card {
  background: var(--navy-light);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 1.2rem 1.5rem;
  transition: border-color 0.3s;
}

.edu-card:hover { border-color: rgba(201,168,76,0.35); }

.edu-year {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.edu-degree {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.edu-inst {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 300;
}

/* --- CLIENT SEGMENTS --- */
#clientes { background: var(--navy-mid); }

.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.client-card {
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 3rem 2.5rem;
  position: relative;
  transition: border-color 0.3s;
}

.client-card:hover { border-color: rgba(201,168,76,0.3); }

.client-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.client-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.client-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.client-card p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.client-card ul { list-style: none; margin-top: 1rem; }

.client-card ul li {
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-weight: 300;
}

.client-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

/* --- CONTACT / FORM --- */
#contacto { background: var(--navy-mid); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  margin-top: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.contact-methods { display: flex; flex-direction: column; gap: 1rem; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.12);
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}

.contact-method:hover {
  border-color: rgba(201,168,76,0.4);
  background: var(--navy-light);
}

.contact-method-icon { font-size: 1.3rem; width: 42px; text-align: center; }

.contact-method-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-method-value {
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 300;
}

/* --- FORM --- */
.contact-form {
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 3rem;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-sub {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.form-group label .required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy-light);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--white);
  padding: 0.85rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 3rem;
}

.form-group select option { background: var(--navy-mid); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(30,48,80,0.8);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(138,155,176,0.5); }

/* Form validation states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
}

.form-group .field-error {
  font-size: 0.72rem;
  color: var(--error);
  display: none;
}

.form-group.error .field-error {
  display: block;
}

/* Consent checkbox */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-consent span {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.6;
}

.form-consent a {
  color: var(--gold-light);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, opacity 0.3s;
  position: relative;
}

.form-submit:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top: 2px solid var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.form-submit.loading .btn-text { visibility: hidden; }
.form-submit.loading .spinner { display: inline-block; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.form-notice {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 1rem;
  text-align: center;
  font-weight: 300;
}

/* Form success/error messages */
.form-message {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-message.visible { display: block; }
.form-fields.hidden { display: none; }

.form-message .msg-icon { font-size: 3rem; margin-bottom: 1rem; }

.form-message .msg-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.form-message .msg-text {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.form-message.error-msg .msg-title {
  color: var(--error);
}

.form-error-banner {
  display: none;
  background: rgba(231,76,76,0.1);
  border: 1px solid rgba(231,76,76,0.3);
  color: var(--error);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.form-error-banner.visible { display: block; }

/* WhatsApp post-success */
.btn-whatsapp-success {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #25d366;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  text-decoration: none;
  margin-top: 0.5rem;
}

.btn-whatsapp-success:hover { background: #1fad54; }

/* Turnstile widget */
.turnstile-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

/* --- FOOTER --- */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 3rem 4rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 600;
}

.footer-brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 300;
  margin-top: 0.2rem;
}

.footer-copy { font-size: 0.75rem; color: var(--gray); font-weight: 300; }
.footer-links { display: flex; gap: 2rem; list-style: none; }

.footer-links a {
  font-size: 0.75rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-confidentiality {
  width: 100%;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.08);
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25d366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg { width: 30px; height: 30px; }

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  nav { padding: 1.2rem 2rem; }
  nav.scrolled { padding: 0.8rem 2rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(201,168,76,0.15);
    gap: 1.2rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 8rem 2rem 3rem; }
  .hero-visual { height: 50vh; }
  .hero-credential-badge { left: 1rem; bottom: 1rem; }

  .section-inner { padding: 4rem 2rem; }

  .services-grid { grid-template-columns: 1fr; gap: 1px; }
  .secondary-services { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  footer { padding: 2rem; }
}

@media (max-width: 480px) {
  .hero-content { padding: 7rem 1.5rem 2rem; }
  .hero-name { font-size: 2.5rem; }
  .contact-form { padding: 2rem 1.5rem; }
  .about-stats { grid-template-columns: 1fr; text-align: center; }
}
