* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0B2447;
  --navy-2: #12283F;
  --blue: #1E6FD9;
  --blue-light: #3B8BEA;
  --sun: #FFB300;
  --sun-dark: #E69500;
  --green: #2E7D32;
  --ink: #1B2735;
  --muted: #5C6B7A;
  --bg: #FFFFFF;
  --bg-alt: #F2F7FD;
  --line: #E3EDF7;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(11, 36, 71, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 36, 71, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; color: var(--navy); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-family: inherit; cursor: pointer;
  border-radius: 12px; border: none; transition: .25s; font-size: 1rem;
  padding: 13px 22px;
}
.btn-primary { background: linear-gradient(135deg, var(--sun), var(--sun-dark)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 179, 0, .4); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; }
.btn-small { padding: 10px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; }
.brand-text { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.brand-text span { color: var(--sun-dark); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--ink); }
.nav a:hover { color: var(--blue); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-top { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.phone-icon { color: var(--green); font-size: 1.15rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; padding: 90px 0 120px; }
.hero-content { width: min(620px, 100%); }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px; border-radius: 100px; font-weight: 600; font-size: .85rem;
  backdrop-filter: blur(4px); margin-bottom: 18px;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; margin-bottom: 16px; }
.hero-content h1 span { color: var(--sun); }
.hero-content p { font-size: 1.15rem; color: #EAF3FD; margin-bottom: 28px; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; font-weight: 500; color: #EAF3FD; }

/* Stats */
.stats { position: relative; margin-top: -70px; z-index: 5; }
.stats-grid {
  background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.stat { padding: 26px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.2rem; color: var(--blue); }
.stat span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow { display: block; color: var(--sun-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.light h2, .section-head.light p { color: #fff; }
.section-head.light .eyebrow { color: var(--sun); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: linear-gradient(135deg, #E6F1FD, #D3E8FC); margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* Beneficios */
.beneficios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.beneficios-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.beneficios-content h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 24px; }
.benefits { list-style: none; display: grid; gap: 18px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.benefit-icon { font-size: 1.6rem; line-height: 1; }
.benefits h4 { font-size: 1.05rem; }
.benefits p { color: var(--muted); font-size: .95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:last-child { grid-column: span 3; height: auto; }
.gallery-item:last-child img { height: 300px; }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-weight: 600;
}

/* Testimonios */
.testimonial { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; }
.quote-stars { color: var(--sun); margin-bottom: 12px; letter-spacing: 3px; }
.quote blockquote { color: #EAF3FD; font-style: italic; margin-bottom: 18px; }
.quote figcaption { color: #C9DAEA; }
.quote figcaption strong { display: block; color: #fff; }

/* Oficinas */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.office-icon { font-size: 2rem; margin-bottom: 8px; }
.office h3 { margin-bottom: 10px; }
.office address { font-style: normal; color: var(--muted); margin-bottom: 12px; }
.office a { display: block; color: var(--blue); font-weight: 600; padding: 3px 0; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map { width: 100%; height: 400px; border: 0; display: block; }

/* Registro */
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.register-media { background: linear-gradient(150deg, var(--navy), #1a5f8a); border-radius: var(--radius); padding: 44px; color: #fff; display: flex; }
.register-copy { align-self: center; }
.register-copy .eyebrow { color: var(--sun); }
.register-copy h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.register-copy p { color: #DCE9F6; margin-bottom: 20px; }
.register-copy .hero-points { color: #DCE9F6; display: grid; gap: 8px; margin-bottom: 24px; }
.register-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #FBFDFF; color: var(--ink); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30,111,217,.12);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #D64545; }
.form-note { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; }
.form-success { margin-top: 14px; padding: 12px; background: #E6F4EA; border: 1px solid #A8DDB5; color: var(--green); border-radius: 10px; font-weight: 600; text-align: center; }

/* Socials */
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy); font-weight: 800; font-size: 1.05rem; transition: .2s;
  border: 1px solid var(--line);
}
.social:hover { transform: translateY(-3px); color: #fff; }
.social-f:hover { background: #1877F2; }
.social-i:hover { background: radial-gradient(circle at 30% 110%, #F8E473, #D62976 55%, #962FBF); }
.social-x:hover { background: #000; }
.social-y:hover { background: #FF0000; }
.social-l:hover { background: #0A66C2; }
.social-w:hover { background: #25D366; }
.reg-socials .social { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.reg-socials .social:hover { color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-2); color: #B9CBDD; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand .brand-text, .footer-brand .brand-text span { color: #fff; }
.footer-brand .brand-text span { color: var(--sun); }
.footer-brand p { margin: 14px 0 20px; font-size: .95rem; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-link { display: block; color: #B9CBDD; padding: 4px 0; }
.footer-link:hover { color: var(--sun); }
.footer-txt { display: block; color: #8BA0B8; padding: 4px 0; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; padding: 20px 0; font-size: .88rem; color: #8BA0B8;
}

.card, .benefits li, .gallery-item, .quote, .office, .stat {
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease;
}
.card.in-view, .benefits li.in-view, .gallery-item.in-view, .quote.in-view, .office.in-view, .stat.in-view {
  opacity: 1; transform: none;
}

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .phone-top { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .beneficios-grid, .register-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:last-child { grid-column: span 2; }
  .testimonials, .offices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item:last-child { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .hero-inner { padding: 60px 0 110px; }
}