/* ============================================
   Ana C de Seguros — estilos
   Archetype: Glassmorphism Modern (paleta navy/celeste de marca)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&family=Sacramento&display=swap');

:root {
  --bg: #f3f7fb;
  --bg-soft: #e9f1f9;
  --navy: #0b2a4a;
  --navy-deep: #06182c;
  --navy-soft: #234876;
  --blue: #4ea8de;
  --blue-light: #a8d8f0;
  --blue-pale: #d9ecfa;
  --ink: #0b2a4a;
  --ink-soft: #3a5a78;
  --ink-mute: #6b8299;
  --paper: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-2: rgba(255, 255, 255, 0.32);
  --glass-border: rgba(255, 255, 255, 0.6);
  --line: rgba(11, 42, 74, 0.12);
  --gold: #c9a15a;
  --shadow-soft: 0 20px 60px rgba(11, 42, 74, 0.12);
  --shadow-strong: 0 30px 80px rgba(11, 42, 74, 0.22);
  --radius: 24px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
section { position: relative; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue);
  display: inline-block;
}

.script-accent {
  font-family: "Sacramento", cursive;
  font-weight: 400;
  color: var(--blue);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lead {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #25d366, #1fb257);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(37, 211, 102, 0.45); }

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 42, 74, 0.3);
}
.btn-navy:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(11, 42, 74, 0.4); }

.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--navy);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.btn-ghost-light:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.22); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1180px, 94%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.7rem 0.6rem 1.1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.nav-brand img { height: 34px; width: 34px; border-radius: 50%; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #fff;
}
.mobile-menu .btn { margin-top: 1rem; }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  font-size: 1.3rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: clip;
}

.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(at 15% 20%, rgba(78, 168, 222, 0.45) 0%, transparent 55%),
    radial-gradient(at 85% 15%, rgba(11, 42, 74, 0.35) 0%, transparent 55%),
    radial-gradient(at 50% 95%, rgba(168, 216, 240, 0.55) 0%, transparent 55%),
    var(--bg);
  filter: blur(70px) saturate(150%);
  animation: meshDrift 32s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation-duration: 60s; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 1.4rem; }

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  text-wrap: balance;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-badges {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.8rem;
}
.hero-badges span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-soft);
}
.hero-badges svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-photo-wrap {
  position: relative;
  width: min(380px, 90%);
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation-duration: 12s; }
}

.hero-card-float {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}
.hero-card-float svg { width: 22px; height: 22px; color: var(--blue); }
.card-float-1 { top: 6%; left: -10%; animation: floatY 7s ease-in-out infinite; }
.card-float-2 { bottom: 8%; right: -8%; animation: floatY 8s ease-in-out infinite 0.4s; }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 2.4rem 0;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-soft);
}
.trust-item svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }

/* ---------- Sections generic ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-soft); }

/* ---------- Seguros grid ---------- */
.seguros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
@supports (backdrop-filter: blur(20px)) {
  .glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.seguro-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.seguro-icon svg { width: 28px; height: 28px; color: #fff; }

.glass-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.glass-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 1.3rem; }

.seguro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.seguro-link:hover { gap: 0.7rem; color: var(--blue); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.4rem;
  align-items: center;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}
.about-photo-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  max-width: 220px;
}
.about-photo-badge .script-accent { color: var(--blue-light); font-size: 1.5rem; display: block; }
.about-photo-badge span.small { font-size: 0.78rem; color: rgba(255,255,255,0.75); }

.about-copy p { color: var(--ink-soft); margin: 1.1rem 0; }
.about-copy .lead-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
  border-left: 3px solid var(--blue);
  padding-left: 1.2rem;
  margin: 1.6rem 0;
}

/* ---------- Steps / process ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.step-card { position: relative; padding-top: 2.4rem; }
.step-num {
  position: absolute;
  top: -0.5rem; left: 1.6rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 3.2rem;
  color: var(--blue-light);
  z-index: 0;
}
.step-card h3, .step-card p { position: relative; z-index: 1; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.benefit-card { text-align: center; }
.benefit-card .seguro-icon { margin-inline: auto; }
.benefit-card p { font-size: 0.88rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.gallery-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.gallery-photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  color: #fff;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40% -10% -60% -10%;
  background: radial-gradient(45% 45% at 50% 30%, rgba(78, 168, 222, 0.45), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 46ch; margin: 1.1rem auto 2rem; }
.cta-banner .btn-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.6rem;
}
.contact-info-card, .contact-form-card {
  border-radius: var(--radius);
  padding: 2.2rem;
}
.contact-info-card {
  background: var(--navy);
  color: #fff;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,0.75); }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-channel:last-child { border-bottom: none; }
.contact-channel .ic {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-channel .ic svg { width: 20px; height: 20px; color: var(--blue-light); }
.contact-channel strong { display: block; font-size: 0.95rem; }
.contact-channel span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.contact-form-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
@supports (backdrop-filter: blur(20px)) {
  .contact-form-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.82rem; font-weight: 700; color: var(--navy-soft); }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 3.4rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.footer-brand span { font-family: "Playfair Display", serif; font-size: 1.15rem; color: #fff; font-weight: 700; }
.footer h4 { color: #fff; font-family: "Manrope", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer a:hover { color: var(--blue-light); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.4rem; font-size: 0.8rem; flex-wrap: wrap; gap: 0.6rem;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1fb257);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .eyebrow { margin-inline: auto; }
  .hero-title { max-width: none; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 2.4rem; }
  .card-float-1 { left: -4%; }
  .card-float-2 { right: -4%; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .seguros-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 380px; margin-inline: auto; }
  .steps-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 639px) {
  .seguros-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-sm span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-photo-badge { position: static; margin-top: -40px; margin-inline: 12px; }
}
