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

:root {
  --navy: #262a5b;
  --navy-mid: #1c3664;
  --gold: #0f62ac;
  --gold-light: #5ab0ee;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray: #8892a4;
  --text: #1e2d4a;
  --shadow: 0 8px 40px rgba(38,42,91,0.12);
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  background: rgba(13,27,62,0.0);
  backdrop-filter: blur(0px);
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(13,27,62,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 42px; border-radius: 8px; background: var(--white); padding: 2px; }
.nav-logo span { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); font-weight: 700; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--gold); transition:var(--transition); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width:100%; }
.nav-cta { background: var(--gold); color: var(--white)!important; padding: 10px 24px; border-radius: 50px; font-weight: 700!important; transition: var(--transition)!important; }
.nav-cta:hover { background: var(--gold-light)!important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 98, 172, 0.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 100; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0a1628 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 5% 80px;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.15; mix-blend-mode: luminosity;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--gold); opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}
.hero-content { position: relative; z-index: 2; max-width: 760px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(90, 176, 238, 0.15); border: 1px solid rgba(90, 176, 238, 0.4);
  padding: 8px 20px; border-radius: 50px; margin-bottom: 28px;
  color: var(--gold-light); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--white); line-height: 1.15; margin-bottom: 24px;
}
.hero-title span { color: var(--gold-light); display: block; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.72); line-height: 1.8; margin-bottom: 44px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--white); padding: 16px 40px;
  border-radius: 50px; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 30px rgba(15, 98, 172, 0.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(15, 98, 172, 0.5); }
.btn-outline {
  background: transparent; color: var(--white); padding: 16px 40px;
  border: 2px solid rgba(255,255,255,0.4); border-radius: 50px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.hero-stats {
  display: flex; gap: 48px; justify-content: center; margin-top: 72px;
  position: relative; z-index: 2;
}
.stat { text-align: center; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--gold-light); font-weight: 700; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; animation: bounce 2s infinite; }
.hero-scroll .arrow { width: 20px; height: 20px; border-right: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); transform: rotate(45deg); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── SECTION BASE ── */
section { padding: 96px 5%; }
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); margin-bottom: 20px; }
.section-sub { font-size: 1.05rem; color: var(--gray); line-height: 1.8; max-width: 560px; }
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── SERVICES ── */
#servicios { background: var(--gray-light); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 32px;
  box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden;
  border: 1px solid rgba(13,27,62,0.06);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(13,27,62,0.18); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px; background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 24px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: var(--gray); line-height: 1.7; }

/* ── ABOUT ── */
#nosotros { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap {
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 48px 40px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.about-quote {
  font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white);
  line-height: 1.5; margin-bottom: 24px;
}
.about-quote span { color: var(--gold); }
.about-badge-float {
  position: absolute; top: -24px; right: -24px;
  background: var(--gold); border-radius: 20px; padding: 24px; text-align: center;
  box-shadow: 0 12px 40px rgba(15, 98, 172, 0.4);
}
.about-badge-float .num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); display: block; }
.about-badge-float .lbl { font-size: 0.72rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; }
.about-text p { font-size: 1.05rem; color: var(--gray); line-height: 1.8; margin-bottom: 20px; }
.about-features { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-features li {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.95rem; color: var(--text); font-weight: 500;
}
.about-features li::before { content: '✓'; width: 26px; height: 26px; background: rgba(15, 98, 172, 0.15); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }

/* ── PROCESS ── */
#proceso { background: var(--navy); }
#proceso .section-title { color: var(--white); }
#proceso .section-sub { color: rgba(255,255,255,0.6); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 0; position: relative; }
.process-steps::before { content:''; position:absolute; top:40px; left:10%; right:10%; height:2px; background:linear-gradient(90deg,var(--gold),rgba(15, 98, 172, 0.2)); z-index:0; }
.step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-num {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--navy);
  margin: 0 auto 24px; box-shadow: 0 8px 30px rgba(15, 98, 172, 0.35);
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── TESTIMONIALS ── */
#testimonios { background: var(--gray-light); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px; }
.testi-card {
  background: var(--white); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(13,27,62,0.06);
}
.testi-card:hover { transform: translateY(-6px); }
.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 18px; letter-spacing: 2px; }
.testi-text { font-size: 0.97rem; color: var(--gray); line-height: 1.75; font-style: italic; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.testi-role { font-size: 0.8rem; color: var(--gray); }

/* ── CONTACT ── */
#contacto { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
.contact-info-item { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.contact-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 0.95rem; color: var(--gray); text-decoration: none; line-height: 1.6; }
.contact-info-item a:hover { color: var(--gold); }
.contact-form { background: var(--gray-light); border-radius: 24px; padding: 44px 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 2px solid rgba(13,27,62,0.1);
  border-radius: 12px; font-family: 'Inter', sans-serif; font-size: 0.95rem;
  color: var(--text); background: var(--white); transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(15, 98, 172, 0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: var(--white); border: none; border-radius: 50px; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.form-submit:hover { background: linear-gradient(135deg, var(--navy-mid), var(--gold)); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(13,27,62,0.3); }
.form-msg { margin-top: 16px; padding: 14px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; display: none; text-align: center; }
.form-msg.success { background: #d4edda; color: #155724; display: block; }
.form-msg.error { background: #f8d7da; color: #721c24; display: block; }

/* ── FOOTER ── */
footer {
  background: var(--navy); padding: 60px 5% 28px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer-bottom a { color: var(--gold); text-decoration: none; }
.social-links { display: flex; gap: 14px; }
.social-link { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.social-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.5); text-decoration: none;
  font-size: 1.7rem; color: white; transition: var(--transition);
  animation: wa-pulse 3s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,0.7); }
@keyframes wa-pulse { 0%,100%{box-shadow:0 8px 30px rgba(37,211,102,0.5)} 50%{box-shadow:0 8px 50px rgba(37,211,102,0.8),0 0 0 12px rgba(37,211,102,0.1)} }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .about-badge-float { top: -16px; right: -8px; }
  .process-steps::before { display: none; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top:72px; left:0; right:0; background: rgba(13,27,62,0.97); padding:32px; gap:24px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
