/* ═══════════════════════════════════════════════════════════
   ESCRIBANA MACÍAS — Styles v2
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --font-heading:    'Playfair Display', Georgia, serif;
  --font:            'Inter', system-ui, sans-serif;
  --primary:         #0C2C55;
  --primary-hover:   #091E3A;
  --primary-light:   rgba(12, 44, 85, 0.08);
  --accent:          #296374;
  --accent-hover:    #1E4D5C;
  --accent-light:    rgba(41, 99, 116, 0.15);
  --accent-gradient: linear-gradient(135deg, #296374, #629FAD);
  --surface:         #FFFFFF;
  --surface-alt:     #EDEDCE;
  --surface-card:    #FFFFFF;
  --dark:            #0C2C55;
  --gray:            #4A5E72;
  --gray-mid:        #8FA3B1;
  --white:           #ffffff;
  --border:          rgba(41, 99, 116, 0.22);
  --shadow-sm:       0 2px 8px rgba(12, 44, 85, 0.07);
  --shadow-md:       0 8px 28px rgba(12, 44, 85, 0.13);
  --shadow-lg:       0 16px 48px rgba(12, 44, 85, 0.20);
  --shadow-navy:     0 8px 32px rgba(12, 44, 85, 0.25);
  --shadow-gold:     0 8px 28px rgba(41, 99, 116, 0.38);
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --navbar-h:        80px;
  --transition:      0.30s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: var(--font);
  color: var(--dark);
  background-color: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

/* ─── Custom Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar            { width: 6px; }
::-webkit-scrollbar-track      { background: var(--surface-alt); }
::-webkit-scrollbar-thumb      { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--accent-hover); }

/* ─── Selection ────────────────────────────────────────────── */
::selection { background: var(--accent-light); color: var(--primary); }

/* ─── Focus ────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ─── Utility ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 5rem; }

/* ─── Animation System ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease,
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Legacy support */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--transition), box-shadow var(--transition),
    transform var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover  { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.97) translateY(0); }

.btn--primary { background-color: var(--primary); color: var(--white); }
.btn--primary:hover { background-color: var(--primary-hover); box-shadow: var(--shadow-navy); }

/* CTA "Contáctenos" — gold gradient pill */
.btn--white {
  background: var(--accent-gradient);
  color: var(--white);
  border-radius: 50px;
  padding: 14px 36px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.40);
}
.btn--white:hover {
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.55);
}

/* CTA "Nuestros Servicios" — ghost pill */
.btn--ghost {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.90);
  border: 2px solid rgba(255, 255, 255, 0.60);
  border-radius: 50px;
  padding: 14px 36px;
}
.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.10);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.80);
}

.btn--lg {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 50px;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Section common headers ──────────────────────────────── */
.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 560px;
  margin-inline: auto;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background-color: transparent;
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(26, 58, 92, 0.10);
  border-bottom-color: var(--border);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.navbar__logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.navbar__logo img {
  height: 100px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.navbar.scrolled .navbar__logo img {
  filter: none;
}

/* Nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.navbar__nav a {
  position: relative;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  transition: color 0.4s ease;
}

.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__nav a:hover { color: var(--accent); }
.navbar__nav a:hover::after { transform: scaleX(1); }

/* Scrolled state — dark links */
.navbar.scrolled .navbar__nav a       { color: var(--dark); }
.navbar.scrolled .navbar__nav a:hover { color: var(--primary); }

/* Navbar CTA — gold gradient pill */
.navbar__cta {
  margin-left: 0.5rem;
  flex-shrink: 0;
  background: var(--accent-gradient);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.navbar__cta:hover { box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.navbar__cta svg   { width: 16px; height: 16px; }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}
.navbar__hamburger:hover { background-color: rgba(255, 255, 255, 0.12); }

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar.scrolled .navbar__hamburger span     { background-color: var(--dark); }
.navbar.scrolled .navbar__hamburger:hover    { background-color: var(--surface-alt); }

/* Hamburger → X */
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #060F1E 0%, #0C2C55 45%, #0A1E3A 75%, #132030 100%);
  padding-top: var(--navbar-h);
  overflow: hidden;
  position: relative;
}

/* Dark overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 30, 0.55);
  pointer-events: none;
  z-index: 1;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: img-fade-in 1.2s ease both, ken-burns 26s 1.2s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  0%   { transform: scale(1)    translate(0,    0); }
  100% { transform: scale(1.10) translate(-2%, -1%); }
}

@keyframes img-fade-in {
  from { opacity: 0; filter: blur(10px); }
  to   { opacity: 1; filter: blur(0); }
}

/* ── Particles ── */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.55), rgba(201, 168, 76, 0.08));
  animation: particle-float var(--dur, 8s) ease-in-out infinite var(--delay, 0s);
}

@keyframes particle-float {
  0%, 100% { transform: scale(1);   opacity: var(--op-min, 0.12); }
  50%       { transform: scale(1.7); opacity: var(--op-max, 0.38); }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100svh - var(--navbar-h));
  padding-block: 5rem;
  position: relative;
  z-index: 2;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 860px;
}

/* Badge — gold gradient pill */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: var(--white);
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.5rem;
  border-radius: 100px;
}
.hero__badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero__title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: 0 2px 40px rgba(201, 168, 76, 0.2);
  word-break: break-word;
}

/* First letter accent */
.hero__title::first-letter { color: var(--white); }

.hero__slogan {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  color: rgba(255, 255, 255, 0.90);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

.hero__subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero__desc {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 1);
  line-height: 1.7;
  max-width: 560px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  justify-content: center;
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(201, 168, 76, 0.60);
  margin-top: 3rem;
  text-decoration: none;
}

.hero__scroll-text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════ */
.services {
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: var(--surface-card);
  border: 1px solid rgba(98, 159, 173, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 26, 42, 0.06);
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-card:hover {
  box-shadow: 0 16px 48px rgba(26, 58, 92, 0.14);
  transform: translateY(-6px);
  border-color: var(--accent);
}

/* Icon — accent-light circle */
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.service-card:hover .service-card__icon {
  background: var(--accent-gradient);
  color: var(--white);
}

.service-card__icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}


/* ════════════════════════════════════════════════════════════
   ABOUT / NOSOTROS
   ════════════════════════════════════════════════════════════ */
.about {
  background-color: var(--surface-alt);
  position: relative;
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4.5rem;
  align-items: center;
}

.about__text .section__title {
  text-align: left;
  margin-top: 0.5rem;
}
.about__text .section__tag { text-align: left; }

/* Decorative vertical line */
.about__deco-line {
  display: none;
}

.about__text p {
  color: var(--gray);
  font-size: 1.0125rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* Horizontal value cards with left border */
.about__value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-left-color var(--transition), box-shadow var(--transition);
}

.about__value:hover {
  border-left-color: #629FAD;
  box-shadow: 0 4px 16px rgba(41, 99, 116, 0.18);
}

.about__value svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.about__value div { display: flex; flex-direction: column; gap: 0.2rem; }

.about__value strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
}

.about__value span { font-size: 0.875rem; color: var(--gray); }

/* Badge column */
.about__badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
}

/* Office photo frame */
.about__office-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  width: 380px;
  max-width: 100%;
  flex-shrink: 0;
}

.about__office-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.about__office-frame::before,
.about__office-frame::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
  transition: width var(--transition), height var(--transition);
}
.about__office-frame::before {
  top: -7px;
  left: -7px;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}
.about__office-frame::after {
  bottom: -7px;
  right: -7px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}

.about__office-frame:hover::before,
.about__office-frame:hover::after {
  width: 40px;
  height: 40px;
}

.about__office-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(98, 159, 173, 0.35);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  animation: img-fade-in 0.9s ease both;
}

.about__office-frame:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 56px rgba(12, 44, 85, 0.25);
}

.about__office-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Google Badge */
.about__photo-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  box-shadow: var(--shadow-gold);
  width: 100%;
  justify-content: center;
}

.about__badge-stars { display: flex; gap: 2px; }
.about__badge-stars svg { width: 14px; height: 14px; fill: #FFD700; stroke: #FFD700; }

.about__badge-info { display: flex; align-items: baseline; gap: 0.375rem; }

.about__badge-score {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

.about__badge-label { font-size: 0.75rem; opacity: 0.8; }

/* ════════════════════════════════════════════════════════════
   ABOUT SLIDER
   ════════════════════════════════════════════════════════════ */
.about-slider {
  position: relative;
}

.about-slider__window {
  position: relative;
  width: 100%;
}

.about-slider__track {
  position: relative;
}

.about-slide {
  width: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.about-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  visibility: visible;
}

/* Nav bar: prev · tabs · next — posicionado arriba del contenido */
.about-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

/* Prev / Next buttons */
.about-slider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--white);
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}

.about-slider__btn:hover {
  background: var(--accent);
  color: var(--white);
}

.about-slider__btn svg {
  width: 20px;
  height: 20px;
}

/* Flechas inferiores */
.about-slider__bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Tab indicators */
.about-slider__tabs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.about-slider__tab {
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.about-slider__tab--active {
  background: var(--accent);
  color: var(--white);
}

/* Escribana slides */
.about__escribana-slide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about__escribana-photo-col {
  flex-shrink: 0;
}

.about__escribana-frame {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}

.about__escribana-frame::before,
.about__escribana-frame::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
  transition: width var(--transition), height var(--transition);
}
.about__escribana-frame::before {
  top: -7px;
  left: -7px;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}
.about__escribana-frame::after {
  bottom: -7px;
  right: -7px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}
.about__escribana-frame:hover::before,
.about__escribana-frame:hover::after {
  width: 40px;
  height: 40px;
}

.about__escribana-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(98, 159, 173, 0.35);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about__escribana-frame:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 56px rgba(12, 44, 85, 0.25);
}

.about__escribana-text .section__title { text-align: left; margin-top: 0.5rem; }
.about__escribana-text .section__tag  { text-align: left; }

.about__escribana-text p {
  color: var(--gray);
  font-size: 1.0125rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ════════════════════════════════════════════════════════════
   REVIEWS CAROUSEL
   ════════════════════════════════════════════════════════════ */
.reviews {
  background-color: var(--primary);
  position: relative;
}

.reviews .section__title { color: var(--white); }
.reviews .section__tag   { color: rgba(201, 168, 76, 0.80); }

.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.reviews__stars { display: flex; gap: 3px; }
.reviews__stars svg { width: 20px; height: 20px; fill: #FFD700; stroke: #FFD700; }

.reviews__score { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.reviews__source { font-size: 0.9rem; color: rgba(255, 255, 255, 0.60); }

/* Carousel wrapper */
.reviews-carousel {
  position: relative;
  overflow: visible;
  padding-inline: 28px;
}

.reviews-carousel__window {
  overflow: hidden;
  transition: height 0.4s ease;
}

.reviews-carousel__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Review card */
.review-card {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.review-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Decorative large quote */
.review-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(201, 168, 76, 0.15);
  line-height: 1;
  pointer-events: none;
}

.review-card__stars { display: flex; gap: 3px; }
.review-card__stars svg { width: 14px; height: 14px; fill: #FFD700; stroke: #FFD700; }

.review-card__text {
  font-size: 0.9125rem;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.65;
  flex: 1;
  position: relative;
  z-index: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: auto;
}

.review-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-card__meta { display: flex; flex-direction: column; gap: 0.1rem; overflow: hidden; }

.review-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card__time { font-size: 0.8rem; color: rgba(255, 255, 255, 0.50); }

/* Carousel nav buttons */
.reviews-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition),
    transform var(--transition), opacity var(--transition);
  z-index: 10;
  cursor: pointer;
}

.reviews-carousel__btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.12);
}

.reviews-carousel__btn svg { width: 20px; height: 20px; }
.reviews-carousel__btn--prev { left: 0; }
.reviews-carousel__btn--next { right: 0; }

.reviews-carousel__counter {
  display: none;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.contact {
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
}

/* Top gradient line */
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  pointer-events: none;
}

/* ── Row 1: Action cards ── */
.contact__actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact__escribanas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact__escribana-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Escribana profile header */
.contact__escribana-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--accent);
}

.contact__escribana-photo {
  width: 260px;
  height: 320px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  padding: 3px;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-md);
}

.contact__escribana-photo img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-md) - 3px);
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border: 2.5px solid var(--white);
  animation: img-fade-in 0.8s ease both;
  transition: transform 0.4s ease;
}

.contact__escribana-photo:hover img {
  transform: scale(1.04);
}

.contact__escribana-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.contact__escribana-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

a.contact-card { cursor: pointer; }
a.contact-card:hover {
  box-shadow: 0 16px 40px rgba(26, 58, 92, 0.14);
  transform: translateX(4px);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

a.contact-card:hover .contact-card__icon {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}

.contact-card__icon svg { width: 22px; height: 22px; }

.contact-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-card__value {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.4;
  word-break: break-word;
}

.contact-card--email .contact-card__value {
  font-size: 0.75rem;
  word-break: normal;
  white-space: nowrap;
}

/* Icon background colors */
.contact-card--wpp .contact-card__icon       { background-color: #25D366; }
.contact-card--phone .contact-card__icon     { background-color: var(--primary); }
.contact-card--email .contact-card__icon     { background-color: #EA4335; }
.contact-card--instagram .contact-card__icon {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.contact-card--facebook .contact-card__icon { background-color: #1877F2; }

/* ── Row 2: Hours ── */
.contact__hours-row {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact__hours-title { display: flex; align-items: center; gap: 0.75rem; }
.contact__hours-title svg { width: 22px; height: 22px; color: var(--accent); }
.contact__hours-title h3 { font-size: 1.125rem; font-weight: 600; color: var(--dark); }

.contact__schedule {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.contact__schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background 0.15s;
}

.contact__schedule-item:last-child { border-bottom: none; }

.contact__schedule-item:not(.contact__schedule-item--closed) {
  border-left-color: var(--accent);
}

.contact__day {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.contact__time {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

.contact__schedule-item--closed { border-left-color: transparent; }
.contact__schedule-item--closed .contact__day  { color: var(--gray-mid); font-weight: 400; }
.contact__schedule-item--closed .contact__time { color: var(--gray-mid); font-weight: 400; }

/* ── Row 3: Map ── */
.contact__map-row {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-md);
}

.contact__map-row iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background-color: #07172A;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 2.5rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid rgba(201, 168, 76, 0.20);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__logo-link { display: flex; align-items: center; }

.footer__logo-img {
  height: 110px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.footer__brand-text { display: flex; flex-direction: column; gap: 0.15rem; }
.footer__brand-name { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.90); }
.footer__brand-sub  {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer__brand-slogan {
  font-size: 0.8125rem;
  color: rgba(201, 168, 76, 0.60);
  font-style: italic;
}

/* Footer social icons */
.footer__social {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.50);
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.footer__social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(201, 168, 76, 0.08);
}

.footer__social-link svg { width: 15px; height: 15px; }

.footer__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.footer__copy-row { padding-top: 1.25rem; text-align: center; }

.footer__copy-row p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__dev { margin-top: 0.25rem; font-size: 0.75rem; }

.footer__dev a {
  color: rgba(255, 255, 255, 0.30);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.footer__dev a:hover { color: rgba(255, 255, 255, 0.65); }

/* ════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ════════════════════════════════════════════════════════════ */
.float-wpp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.40), var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition);
  animation: wpp-pulse 3s ease-in-out infinite;
}

@keyframes wpp-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.30); }
  50%       { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55), 0 0 0 14px rgba(37, 211, 102, 0); }
}

.float-wpp:hover {
  background-color: #1ebe5d;
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55), var(--shadow-lg);
  animation: none;
}

.float-wpp svg { width: 26px; height: 26px; }

/* Tooltip */
.float-wpp__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.float-wpp__tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--primary);
}

.float-wpp:hover .float-wpp__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero__inner { gap: 2.5rem; padding-block: 3.5rem; }

  .about__inner { grid-template-columns: 1fr; gap: 3rem; }

  .about__badge-col {
    order: -1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .about__office-photo { width: 100%; max-width: 440px; }
  .about__photo-badge { width: auto; align-self: center; }

  .about__escribana-slide { grid-template-columns: 1fr; gap: 1.75rem; }
  .about__escribana-frame { width: 100%; max-width: 300px; margin-inline: auto; }
  .about__escribana-frame img { height: auto; aspect-ratio: 3 / 4; }
  .contact__actions { grid-template-columns: repeat(3, 1fr); }
  .contact__escribanas { grid-template-columns: 1fr; }
  .contact__escribana-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* Navbar — solid on mobile for readability */
  .navbar {
    background: rgba(26, 58, 92, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .navbar__logo img { height: 68px; }
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }

  /* Dropdown mobile */
  .navbar__nav {
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    z-index: 999;
    background-color: rgba(26, 58, 92, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    margin-left: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                opacity 0.3s ease,
                visibility 0s linear 0.3s;
    pointer-events: none;
  }

  .navbar__nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                opacity 0.3s ease,
                visibility 0s linear 0s;
  }

  .navbar__nav a {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.90);
  }

  .navbar__nav a:last-child { border-bottom: none; }
  .navbar__nav a:hover { background-color: rgba(255, 255, 255, 0.08); color: var(--white); }

  /* Evita que .navbar.scrolled sobreescriba los colores del menú abierto en móvil */
  .navbar.scrolled .navbar__nav a       { color: rgba(255, 255, 255, 0.90); }
  .navbar.scrolled .navbar__nav a:hover { color: var(--white); }

  /* Hero mobile */
  .hero__inner { min-height: calc(100svh - var(--navbar-h)); padding-block: 2.5rem; padding-inline: 1.5rem; }
  .hero__content { gap: 0.85rem; width: 100%; }
  .hero__badge {
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    padding: 0.45rem 1rem;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); letter-spacing: 0.02em; }
  .hero__desc { font-size: 1rem; line-height: 1.6; width: 100%; overflow-wrap: break-word; }
  .hero__actions { flex-direction: column; width: 100%; margin-top: 0.25rem; }
  .hero__actions .btn { justify-content: center; width: 100%; }
  .hero__scroll { display: none; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }
  .service-card { text-align: center; }
  .service-card__icon { margin-inline: auto; }

  /* About mobile */
  .about__inner { gap: 2rem; }
  .about__deco-line { display: none; }

  /* Foto del escritorio: más compacta en móvil, al tope */
  .about__badge-col { order: -1; flex-direction: column; align-items: center; }
  .about__office-photo { width: 100%; max-width: 100%; }
  .about__office-frame img { max-height: 220px; object-fit: cover; }
  .about__photo-badge { flex-direction: row; width: auto; border-radius: 100px; }
  .about__badge-info { flex-direction: row; align-items: baseline; }

  /* Escribanas mobile: foto entera centrada */
  .about__escribana-slide { gap: 1.5rem; }
  .about__escribana-frame {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-lg);
  }
  .about__escribana-frame::before,
  .about__escribana-frame::after { display: none; }
  .about__escribana-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: unset;
    border-radius: var(--radius-lg);
  }
  .about__escribana-text { text-align: center; }
  .about__escribana-text .section__title { text-align: center; }
  .about__escribana-text .section__tag  { text-align: center; }

  /* Nav superior */
  .about-slider__nav { margin-bottom: 1.25rem; gap: 0.5rem; }
  .about-slider__tab { padding: 0.375rem 0.875rem; font-size: 0.75rem; }

  /* Contact escribana photo mobile */
  .contact__escribana-header { gap: 0.75rem; }
  .contact__escribana-photo { width: 190px; height: 235px; }

  /* Reviews mobile */
  .reviews { padding-block-end: 2.5rem; }
  .reviews-carousel { padding-inline: 0; }
  .reviews-carousel__track { align-items: flex-start; }
  .review-card__text { flex: none; }
  .reviews-carousel__btn { display: none; }
  .reviews-carousel__counter { display: block; }

  /* Contact mobile */
  .contact__actions { grid-template-columns: repeat(2, 1fr); }
  .contact__escribanas { grid-template-columns: 1fr; }
  .contact__escribana-cards { grid-template-columns: 1fr; }
  .contact__hours-title { justify-content: center; width: 100%; }
  .contact__map-row { height: 280px; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .footer__brand { flex-direction: column; align-items: center; text-align: center; }
  .footer__nav { justify-content: center; gap: 0; }
  .footer__nav a { padding: 0.5rem 0.6rem; }
  .footer__social { justify-content: center; }
}

/* ─── Contact Form ───────────────────────────────────────── */
.contact__form {
  max-width: 600px;
  margin: 2.5rem auto 3rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Top accent bar */
.contact__form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Form heading */
.contact__form-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.contact__form-heading svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__form-heading h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Input wrapper for icon support */
.form__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form__input-wrap svg {
  position: absolute;
  left: 0.9rem;
  width: 17px;
  height: 17px;
  color: var(--gray-mid);
  pointer-events: none;
  flex-shrink: 0;
  transition: color var(--transition);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--surface-alt);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

/* Padding extra cuando hay ícono a la izquierda — debe ir después de la regla base */
.form__input-wrap input,
.form__input-wrap textarea {
  padding-left: 2.75rem;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--gray-mid);
  font-size: 0.9rem;
}

.form__group input:hover,
.form__group textarea:hover {
  border-color: rgba(201, 168, 76, 0.5);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-card);
  box-shadow: 0 0 0 4px rgba(41, 99, 116, 0.14);
}

/* Change icon color on focus */
.form__input-wrap:focus-within svg {
  color: var(--accent);
}

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

.contact__form .btn--submit {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  gap: 0.625rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-navy);
  transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact__form .btn--submit:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 28px rgba(26, 58, 92, 0.35);
  transform: translateY(-2px);
}

.contact__form .btn--submit svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .contact__form {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
  }
}

/* ════════════════════════════════════════════════════════════
   SUCCESS MODAL
   ════════════════════════════════════════════════════════════ */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 44, 85, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.success-overlay.visible {
  opacity: 1;
}

.success-overlay[hidden] {
  display: none;
}

.success-modal {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 24px 64px rgba(12, 44, 85, 0.28);
  border-top: 4px solid #629FAD;
  transform: translateY(32px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.35s ease;
  opacity: 0;
}

.success-overlay.visible .success-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Icono animado */
.success-modal__icon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDEDCE;
  border-radius: 50%;
}

.success-modal__circle-bg {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
}

.success-modal__ring {
  animation: ring-draw 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes ring-draw {
  to { stroke-dashoffset: 0; }
}

.success-modal__check {
  width: 52px;
  height: 52px;
  position: relative;
  z-index: 1;
}

.success-modal__check polyline {
  animation: check-draw 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.75s forwards;
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.success-modal__title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.success-modal__text {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.65;
  max-width: 300px;
}

.success-modal__btn {
  margin-top: 0.5rem;
  background: var(--accent-gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.875rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(41, 99, 116, 0.32);
  transition: transform var(--transition), box-shadow var(--transition);
}

.success-modal__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(41, 99, 116, 0.42);
}

@media (max-width: 640px) {
  .success-modal {
    padding: 2.25rem 1.5rem 2rem;
  }
}
