:root {
  --primary: #571f85;
  --primary-dark: #47156d;
  --secondary: #1aa7d6;
  --accent: #82c842;
  --bg: #dff2fb;
  --page: #edf8fd;
  --text: #2f2e44;
  --muted: #72748f;
  --surface: #ffffff;
  --border: rgba(85, 31, 131, 0.1);
  --shadow: 0 18px 40px rgba(46, 21, 73, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1210px, calc(100% - 34px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { line-height: 1.58; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-family: 'Poppins', 'Nunito', sans-serif; }
.container { width: var(--container); margin: 0 auto; }
.section { position: relative; padding: 54px 0; }
.skip-link {
  position: absolute; left: -999px; top: -999px; padding: .85rem 1rem; background: var(--primary); color: white; border-radius: 12px; z-index: 99;
}
.skip-link:focus { left: 14px; top: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(85, 31, 131, 0.04);
  box-shadow: 0 6px 16px rgba(39, 12, 62, 0.04);
}
.site-header::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 128px; height: 3px;
  background: var(--accent);
}
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.brand img { width: 116px; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 14px; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 24px; height: 3px; margin: 4px auto;
  background: var(--primary); border-radius: 999px;
}
.main-nav {
  display: flex; justify-content: center; align-items: center; gap: 1.35rem;
  font-family: 'Poppins', sans-serif; font-size: .92rem; font-weight: 700;
}
.main-nav a {
  color: #696881; position: relative; padding: .2rem 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--secondary); }
.main-nav a.active::after, .main-nav a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 3px; border-radius: 999px; background: var(--secondary);
}
.link-ingresar {
  padding: .82rem 1.15rem !important;
  border-radius: 999px;
  background: #f2edf8;
  color: var(--primary) !important;
}
.link-ingresar::after { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: 999px; padding: .95rem 1.5rem;
  font-family: 'Poppins', sans-serif; font-weight: 800; border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary); color: white; box-shadow: 0 14px 24px rgba(87, 31, 133, 0.2);
}
.btn-secondary {
  background: white; color: var(--primary); border: 2px solid rgba(87, 31, 133, 0.25);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #89d63d 0%, #5adb62 100%); color: white; box-shadow: 0 12px 24px rgba(94, 217, 88, 0.2);
}
.btn.full { width: 100%; }

.hero {
  background: linear-gradient(180deg, var(--bg) 0%, #dff2fb 100%);
  padding-top: 42px;
  padding-bottom: 122px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -120px; top: 10px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 167, 214, 0.11), rgba(26, 167, 214, 0));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 18px;
}
.hero-copy { padding-left: 8px; }
.hero-copy h1 {
  max-width: 8.5ch;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.055em;
  color: var(--primary);
}
.hero-copy h1 span { color: var(--secondary); }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.8rem;
}
.hero-mini-features {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin-top: 1.55rem;
}
.hero-mini-features div {
  display: flex; align-items: center; gap: .45rem;
  color: #6a6c84; font-weight: 700; font-size: .93rem;
}
.hero-mini-features i {
  color: var(--secondary); font-size: 1.28rem;
}
.hero-visual { position: relative; }
.hero-stage {
  position: relative;
  min-height: 410px;
  display: flex; align-items: center; justify-content: flex-end;
}
.hero-banner-art {
  width: min(840px, 100%);
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(47, 16, 75, 0.08));
}
.hero-phone-mockup {
  position: absolute;
  right: -8px; bottom: -44px;
  width: 244px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(180deg, #171717 0%, #010101 100%);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}
.phone-notch {
  position: absolute;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 18px; border-radius: 0 0 18px 18px;
  background: #171717; z-index: 2;
}
.phone-screen {
  background: #dff2fb;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 9 / 18.5;
}
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.hero-waves {
  position: absolute; left: -2%; right: -2%; bottom: -10px; height: 114px;
}
.hero-waves span {
  position: absolute; left: 0; right: 0; border-radius: 100% 100% 0 0 / 100% 100% 0 0;
}
.wave-green {
  left: -4%; right: 54%; bottom: 52px; height: 72px; background: var(--accent); transform: rotate(3deg);
}
.wave-purple {
  left: 10%; right: -4%; bottom: 18px; height: 80px; background: var(--primary); transform: rotate(-1.5deg);
}
.wave-cyan {
  left: -2%; right: 34%; bottom: -14px; height: 84px; background: var(--secondary); transform: rotate(4.5deg);
}

.intro-strip { padding-top: 18px; }
.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.intro-card {
  padding: 1.5rem 1.15rem 1.4rem;
  text-align: center;
  border-right: 1px solid rgba(85, 31, 131, 0.08);
}
.intro-card:last-child { border-right: 0; }
.intro-icon {
  display: inline-grid; place-items: center;
  color: var(--secondary); font-size: 2rem; margin-bottom: .55rem;
}
.intro-card h2 { color: var(--primary); font-size: 1.16rem; }
.intro-card p {
  color: #696d85; font-size: .9rem; margin: .75rem 0 0;
}
.intro-card a {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-top: .8rem; color: var(--secondary); font-weight: 800;
}

.section-heading {
  text-align: center; margin-bottom: 1.65rem;
}
.section-heading h2 {
  color: var(--primary); font-size: clamp(1.8rem, 4vw, 2.35rem);
}
.section-heading.light h2 { color: white; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(85, 31, 131, 0.08);
  border-radius: 20px;
  padding: 1.25rem .95rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(45, 21, 72, 0.05);
}
.service-icon {
  display: inline-grid; place-items: center;
  color: var(--secondary); font-size: 2rem; margin-bottom: .75rem;
}
.service-card h3 { color: var(--primary); font-size: 1.08rem; min-height: 54px; }
.service-card p { color: #6c7089; margin: .35rem 0 0; font-size: .9rem; }

.process-section {
  background: linear-gradient(180deg, #5a1f89 0%, #4a166f 100%);
  padding-top: 70px;
  padding-bottom: 74px;
  overflow: hidden;
}
.process-section::before, .process-section::after {
  content: '';
  position: absolute; left: -2%; right: -2%; height: 48px; background: var(--page);
}
.process-section::before {
  top: -20px; border-bottom-left-radius: 60% 100%; border-bottom-right-radius: 40% 100%;
}
.process-section::after {
  bottom: -20px; border-top-left-radius: 42% 100%; border-top-right-radius: 58% 100%;
}
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  z-index: 1;
}
.process-steps::before {
  content: '';
  position: absolute; left: 6%; right: 6%; top: 40px;
  border-top: 2px dashed rgba(255,255,255,0.45);
}
.step {
  text-align: center; color: white; position: relative;
}
.step-icon {
  width: 68px; height: 68px; margin: 0 auto .9rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: white; color: var(--secondary); font-size: 2rem;
  position: relative; z-index: 1;
}
.step-icon-check span {
  display: inline-grid;
  place-items: center;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  color: #17a8d6;
}
.step h3 { font-size: 1rem; margin-bottom: .4rem; }
.step p { color: rgba(255,255,255,0.88); margin: 0; font-size: .88rem; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.3rem;
}
.benefit-panel, .coverage-panel, .testimonial, .faq-block, .cta-panel, .contact-card, .contact-form, .map-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(85, 31, 131, 0.08);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(45, 21, 72, 0.05);
}
.benefit-panel {
  padding: 1.4rem; display: grid; grid-template-columns: 1fr 140px; gap: 1rem; align-items: center;
}
.benefit-panel h2, .coverage-panel h2, .faq-block h2, .cta-copy h2 {
  color: var(--secondary); font-size: 2rem;
}
.check-list {
  list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem;
}
.check-list li {
  position: relative; padding-left: 1.25rem; color: #646985; font-weight: 700;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900;
}
.benefit-glass {
  min-height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(26,167,214,0.08)), url('../img/hero-brand.jpeg') center/cover no-repeat;
  border-radius: 18px;
}
.coverage-panel { padding: 1.4rem; }
.coverage-panel p { color: #6b7088; margin: .4rem 0 0; }
.zone-chips {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem;
}
.zone-chips span {
  padding: .45rem .75rem; border-radius: 999px;
  background: rgba(87, 31, 133, 0.05); color: var(--primary);
  font-weight: 800; font-family: 'Poppins', sans-serif; font-size: .82rem;
}
.map-placeholder {
  position: relative; min-height: 178px; margin-top: .9rem; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)),
    linear-gradient(90deg, rgba(85, 31, 131, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(85, 31, 131, 0.06) 1px, transparent 1px),
    linear-gradient(120deg, #d6efe1 0%, #f4f4f4 45%, #e1f0f8 100%);
  background-size: auto, 28px 28px, 28px 28px, auto;
}
.map-placeholder::before {
  content: 'Oaxaca';
  position: absolute; left: 12%; top: 18%;
  color: rgba(85, 31, 131, 0.7); font-weight: 800; font-family: 'Poppins', sans-serif;
}
.map-placeholder::after {
  content: 'Centro';
  position: absolute; right: 18%; bottom: 16%;
  color: rgba(85, 31, 131, 0.7); font-weight: 800; font-family: 'Poppins', sans-serif;
}
.pin {
  position: absolute; width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0; background: var(--primary);
  transform: rotate(-45deg); box-shadow: 0 0 0 8px rgba(85, 31, 131, 0.08);
}
.pin::after {
  content: ''; position: absolute; inset: 5px; background: white; border-radius: 50%;
}
.pin-1 { left: 20%; top: 42%; }
.pin-2 { left: 56%; top: 36%; }
.pin-3 { left: 76%; top: 58%; }

.gallery-section { padding-top: 22px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
}
.gallery-item {
  min-height: 128px;
  border-radius: 14px;
  background-color: #cfe8f3;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(39, 15, 64, 0.07);
}
.gallery-a { background-image: url('../img/hero-brand.jpeg'); }
.gallery-b { background-image: url('../img/hero-banner.jpeg'); background-position: 60% center; }
.gallery-c { background-image: url('../img/logo-reference.jpeg'); background-position: center top; }
.gallery-d { background-image: url('../img/hero-banner.jpeg'); background-position: right center; }
.gallery-e { background-image: url('../img/hero-brand.jpeg'); background-position: left center; }

.testimonials-section { padding-top: 24px; }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.testimonial {
  padding: 1.25rem 1.25rem 1.15rem;
}
.testimonial > i {
  color: var(--secondary); font-size: 1.85rem;
}
.testimonial p {
  margin: .4rem 0 .7rem; color: #5f647d; font-weight: 700;
}
.rating {
  color: #f0b02b; letter-spacing: .1em; font-weight: 900; font-size: .95rem;
}
.testimonial-meta {
  display: flex; align-items: center; gap: .8rem; margin-top: .9rem;
}
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #c8e9f8, #e9edf8);
}
.avatar-a { background: linear-gradient(135deg, #f6c6c5, #f0f3fb); }
.avatar-b { background: linear-gradient(135deg, #b4d9f9, #eef3fb); }
.avatar-c { background: linear-gradient(135deg, #f9d6b2, #f1edf9); }
.testimonial-meta strong { display: block; color: var(--primary); }
.testimonial-meta span { color: #6f738b; font-size: .9rem; }

.faq-cta-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.2rem;
}
.faq-block { padding: 1.35rem; }
.faq-list { display: grid; gap: .6rem; margin-top: 1rem; }
.faq-item {
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(85, 31, 131, 0.09); background: white;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  border: 0; background: transparent; cursor: pointer; text-align: left;
  padding: .82rem 1rem; color: var(--primary); font: 800 .94rem 'Poppins', sans-serif;
}
.faq-question span { font-size: 1.2rem; transition: transform .25s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer p { margin: 0; padding: 0 1rem 1rem; color: #656a84; }
.faq-item.active .faq-answer { max-height: 180px; }
.faq-item.active .faq-question span { transform: rotate(45deg); }
.cta-panel {
  display: grid; grid-template-columns: 1fr 210px; align-items: end; overflow: hidden;
  background: linear-gradient(180deg, #5d2090 0%, #4f1a79 100%);
  position: relative;
}
.cta-panel::after {
  content: ''; position: absolute; left: -4%; right: -4%; bottom: -20px; height: 72px;
  background: linear-gradient(90deg, var(--accent) 0 28%, var(--primary) 28% 72%, var(--secondary) 72% 100%);
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
}
.cta-copy {
  padding: 1.5rem; position: relative; z-index: 1;
}
.cta-copy h2 { color: white; }
.cta-copy p { color: rgba(255,255,255,0.88); margin: .7rem 0 1rem; }
.cta-jug {
  position: relative; z-index: 1; width: 210px; align-self: end; justify-self: end; margin-right: 4px; transform: translateY(18px);
}

.contact-section { padding-top: 30px; }
.contact-grid {
  display: grid; grid-template-columns: .9fr 1.05fr 1fr; gap: 1rem;
}
.contact-card { padding: 1.3rem; }
.contact-list {
  margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem;
}
.contact-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start;
  color: #656a84; font-weight: 700;
}
.contact-list i { color: var(--secondary); font-size: 1.35rem; }
.contact-form {
  padding: 1.2rem; display: grid; gap: .9rem;
}
.contact-form label {
  display: grid; gap: .35rem; color: var(--primary); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .92rem;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(85, 31, 131, 0.12); background: rgba(255,255,255,0.95); font: inherit; color: var(--text);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid rgba(26, 167, 214, 0.15); border-color: rgba(26, 167, 214, 0.25);
}
.form-message { min-height: 1.2rem; color: var(--primary); font-weight: 800; margin: 0; }
.map-card {
  position: relative; overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(85, 31, 131, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(85, 31, 131, 0.06) 1px, transparent 1px),
    linear-gradient(120deg, #f5f5f5 0%, #e7eef2 40%, #edf5db 80%, #f5f5f5 100%);
  background-size: 28px 28px, 28px 28px, auto;
}
.map-grid::before, .map-grid::after {
  position: absolute; color: rgba(85, 31, 131, 0.7); font-family: 'Poppins', sans-serif; font-weight: 800;
}
.map-grid::before { content: 'Oaxaca'; left: 14%; top: 20%; }
.map-grid::after { content: 'Centro'; right: 18%; bottom: 18%; }
.map-pin.main {
  position: absolute; left: 52%; top: 48%; width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0; background: var(--primary); transform: translate(-50%, -50%) rotate(-45deg); box-shadow: 0 0 0 9px rgba(85, 31, 131, 0.08);
}
.map-pin.main::after {
  content: ''; position: absolute; inset: 7px; border-radius: 50%; background: white;
}

.site-footer {
  position: relative; background: linear-gradient(180deg, #5b1e8b 0%, #4a176f 100%); color: rgba(255,255,255,0.9);
  padding-top: 48px; overflow: hidden;
}
.footer-top-waves {
  position: absolute; left: -2%; right: -2%; top: -48px; height: 76px;
}
.footer-top-waves span { position: absolute; border-radius: 100% 100% 0 0 / 100% 100% 0 0; }
.footer-wave-green {
  left: -6%; right: 72%; bottom: 0; height: 62px; background: var(--accent); transform: rotate(-4deg);
}
.footer-wave-white {
  left: 0; right: -2%; bottom: 18px; height: 62px; background: var(--page); transform: rotate(2deg);
}
.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr .95fr; gap: 1.4rem;
}
.footer-logo { width: 150px; }
.footer-branding p { max-width: 22ch; margin: .8rem 0 0; font-weight: 700; }
.site-footer h3 { color: white; margin-bottom: .7rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.site-footer a:hover { color: #aee6fb; }
.footer-bottom {
  position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.5rem;
}
.footer-bottom-inner {
  min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .95rem;
}

.auth-body, .legal-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, #edf8fd 0%, #dbf0fb 100%);
}
.auth-card {
  width: min(1040px, 100%); display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden;
  background: rgba(255,255,255,0.88); border: 1px solid rgba(85, 31, 131, 0.08); border-radius: 28px; box-shadow: var(--shadow);
}
.auth-side {
  padding: 2.3rem; color: white; background: linear-gradient(160deg, #5f2391 0%, #48166d 64%, #1aa7d6 100%);
}
.auth-side img { width: 160px; margin-bottom: 1rem; }
.auth-side h1 { font-size: 2.3rem; margin-bottom: 1rem; }
.auth-side p, .auth-side li { color: rgba(255,255,255,0.9); }
.auth-form-wrap { padding: 2.2rem; }
.back-link { display: inline-flex; margin-top: 1rem; color: var(--primary); font-weight: 800; }
.legal-page { display: block; }
.legal-hero { padding: 24px 0 0; }
.legal-card {
  width: min(900px, calc(100% - 32px)); margin: 16px auto 34px;
  padding: 2rem; background: rgba(255,255,255,0.9); border: 1px solid rgba(85, 31, 131, 0.08); border-radius: 24px; box-shadow: var(--shadow);
}
.legal-card h1, .legal-card h2 { color: var(--primary); }
.legal-card h2 { margin-top: 1.4rem; font-size: 1.2rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .hero-stage { justify-content: center; min-height: 360px; }
  .hero-banner-art { width: min(760px, 100%); }
  .hero-phone-mockup { right: 30px; }
  .service-grid, .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .intro-grid, .testimonial-grid, .benefits-grid, .faq-cta-grid, .contact-grid, .footer-grid, .auth-card { grid-template-columns: 1fr; }
  .intro-card { border-right: 0; border-bottom: 1px solid rgba(85, 31, 131, 0.08); }
  .intro-card:last-child { border-bottom: 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-jug { width: 180px; margin: 0 18px 10px auto; }
  .footer-bottom-inner { flex-direction: column; justify-content: center; text-align: center; padding: .8rem 0; }
}

@media (max-width: 820px) {
  .header-inner { grid-template-columns: auto auto 1fr; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    display: none; flex-direction: column; align-items: flex-start; gap: .9rem;
    padding: 1rem; border-radius: 20px; background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow); border: 1px solid rgba(85, 31, 131, 0.08);
  }
  .main-nav.open { display: flex; }
  .header-actions { display: none; }
  .hero-phone-mockup { width: 210px; right: 10px; bottom: -30px; }
}

@media (max-width: 680px) {
  .section { padding: 42px 0; }
  .hero { padding-top: 28px; padding-bottom: 96px; }
  .hero-copy { padding-left: 0; }
  .hero-copy h1 { font-size: clamp(2.5rem, 14vw, 4.2rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-mini-features { flex-direction: column; gap: .7rem; }
  .hero-stage { min-height: 290px; }
  .hero-phone-mockup { display: none; }
  .service-grid, .gallery-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .benefit-panel { grid-template-columns: 1fr; }
  .wave-green { right: 38%; }
  .wave-purple { left: 0; }
  .wave-cyan { right: 20%; }
}


/* ===== Actualizaciones v6 ===== */
.hero-stage {
  justify-content: center;
  min-height: 455px;
}
.hero-banner-art {
  width: min(900px, 100%);
  border-radius: 26px;
}
.map-visual-link {
  display: block;
  margin-top: .9rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(45, 21, 72, 0.08);
}
.map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.location-map {
  min-height: 100%;
}
.gallery-grid {
  align-items: stretch;
}
.gallery-item {
  min-height: 170px;
  margin: 0;
  overflow: hidden;
  background: #cfe8f3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.cta-panel-image {
  padding: 0;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.cta-panel-image::after {
  display: none;
}
.cta-banner-link {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(45, 21, 72, 0.12);
}
.cta-banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.map-card {
  min-height: 320px;
  padding: 0;
}
.simple-footer {
  padding: 18px 0;
  background: linear-gradient(180deg, #5b1e8b 0%, #4a176f 100%);
}
.simple-footer .footer-bottom-inner {
  min-height: auto;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}
.simple-footer .footer-single-line {
  padding: .4rem 0;
}
@media (max-width: 1200px) {
  .hero-stage {
    min-height: 360px;
  }
}
@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-card {
    min-height: 280px;
  }
}
@media (max-width: 680px) {
  .hero-stage {
    min-height: 250px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item {
    min-height: 220px;
  }
  .map-card {
    min-height: 220px;
  }
}


/* ===== v7 ajuste fino ===== */
html { scroll-padding-top: 92px; }
section[id] { scroll-margin-top: 92px; }
body {
  background: linear-gradient(180deg, #edf8fd 0%, #f6fbfe 38%, #edf7fc 100%);
}
.site-header {
  background: rgba(255,255,255,.985);
  box-shadow: 0 10px 24px rgba(39, 12, 62, 0.035);
}
.site-header::after { width: 132px; }
.header-inner {
  min-height: 82px;
}
.brand img { width: 122px; }
.main-nav { gap: 1.45rem; }
.main-nav a { font-size: .91rem; }
.hero {
  padding-top: 36px;
  padding-bottom: 110px;
  background: linear-gradient(180deg, #e5f4fc 0%, #dff2fb 100%);
}
.hero-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 26px;
}
.hero-copy h1 {
  max-width: 8.2ch;
  font-size: clamp(3.55rem, 6vw, 5.65rem);
  line-height: .92;
}
.hero-actions {
  margin-top: 1.55rem;
}
.hero-actions .btn {
  min-width: 208px;
}
.hero-mini-features {
  margin-top: 1.2rem;
  gap: 1rem 1.2rem;
}
.hero-mini-features div {
  font-size: .9rem;
}
.hero-stage {
  min-height: 470px;
  justify-content: flex-end;
}
.hero-banner-art {
  width: min(920px, 100%);
  border-radius: 0;
  filter: drop-shadow(0 12px 20px rgba(47, 16, 75, 0.06));
}
.hero-waves { height: 106px; bottom: -6px; }
.wave-green { left: -2%; right: 56%; bottom: 50px; height: 68px; transform: rotate(2.5deg); }
.wave-purple { left: 6%; right: -1%; bottom: 22px; height: 78px; transform: rotate(-1.2deg); }
.wave-cyan { left: -2%; right: 35%; bottom: -10px; height: 82px; transform: rotate(4deg); }
.intro-strip { padding-top: 10px; }
.intro-card {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.service-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.service-card p { margin-top: .55rem; }
.gallery-section { padding-top: 12px; }
.gallery-grid { gap: .9rem; }
.gallery-item {
  min-height: 178px;
  border-radius: 16px;
}
.gallery-item img {
  object-position: center;
}
.testimonials-section { padding-top: 10px; }
.faq-cta-grid { align-items: stretch; }
.faq-block, .cta-banner-link { height: 100%; }
.cta-banner-link {
  min-height: 100%;
  background: #4f1a79;
}
.cta-banner-img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}
.map-card {
  min-height: 340px;
}
.contact-grid { align-items: stretch; }
.contact-card, .contact-form, .map-card {
  min-height: 100%;
}
.simple-footer {
  padding: 22px 0;
}
.simple-footer .footer-bottom-inner {
  font-size: .98rem;
  letter-spacing: .01em;
}
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-copy h1 { max-width: none; }
  .hero-stage {
    min-height: 360px;
    justify-content: center;
  }
}
@media (max-width: 680px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 90px;
  }
  .hero-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }
  .hero-actions .btn {
    min-width: 0;
    width: 100%;
  }
  .gallery-item { min-height: 220px; }
}


/* ===== v8 hero carrusel integrado ===== */
.hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
}
.hero-copy h1 {
  max-width: 7.5ch;
  font-size: clamp(3.2rem, 6.6vw, 5.2rem);
}
.hero-visual {
  position: relative;
  padding-right: 4px;
}
.hero-carousel {
  min-height: 400px;
  justify-content: center;
  align-items: center;
}
.hero-carousel::before {
  content: '';
  position: absolute;
  inset: 8% 6% 12% 8%;
  background: radial-gradient(circle at 80% 40%, rgba(255,255,255,.56), rgba(255,255,255,0) 34%), linear-gradient(180deg, rgba(162, 214, 240, 0.55), rgba(194, 233, 247, 0.12));
  border-radius: 42% 58% 46% 54% / 20% 16% 26% 22%;
  filter: blur(8px);
  z-index: 0;
}
.hero-carousel-shell {
  position: relative;
  width: min(100%, 760px);
  min-height: 360px;
  border-radius: 40px 90px 48px 88px;
  overflow: visible;
  z-index: 1;
}
.hero-carousel-shell::before {
  content: '';
  position: absolute;
  inset: 6% 3% 12% 2%;
  background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0));
  border-radius: 42px 96px 56px 100px;
}
.hero-carousel-shell::after {
  content: '';
  position: absolute;
  left: -10px;
  right: -18px;
  bottom: -10px;
  height: 92px;
  background: linear-gradient(90deg, rgba(130,200,66,0.95) 0 24%, rgba(26,167,214,0.95) 24% 58%, rgba(87,31,133,0.95) 58% 100%);
  border-radius: 44% 56% 0 0 / 100% 100% 0 0;
  transform: rotate(1deg);
  z-index: 1;
  opacity: .94;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.985);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
  border-radius: 34px 88px 42px 84px;
  overflow: hidden;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(223,242,251,0) 0%, rgba(223,242,251,0.85) 100%);
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.hero-slide img.hero-banner-art {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center center;
  border-radius: 34px 88px 42px 84px;
  box-shadow: none;
  filter: none;
}
.hero-carousel-dots {
  position: absolute;
  left: 36px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 2px rgba(87,31,133,.12);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.hero-dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}
.hero-dot:hover { background: var(--secondary); }

@media (max-width: 1200px) {
  .hero-copy h1 { max-width: 8.5ch; }
  .hero-carousel-shell,
  .hero-slide img.hero-banner-art { min-height: 320px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .hero-carousel { min-height: 340px; }
  .hero-carousel-shell { min-height: 320px; width: min(100%, 820px); }
}
@media (max-width: 680px) {
  .hero-carousel { min-height: 240px; }
  .hero-carousel-shell { min-height: 230px; border-radius: 30px 46px 30px 46px; }
  .hero-slide,
  .hero-slide img.hero-banner-art { border-radius: 26px 40px 26px 40px; min-height: 230px; }
  .hero-carousel-shell::after { height: 54px; }
  .hero-carousel-dots { left: 20px; bottom: 12px; }
}


/* ===== v9 correcciones hero ===== */
.hero {
  padding-bottom: 160px;
  overflow: hidden;
}
.hero .container,
.hero-grid,
.hero-copy,
.hero-visual,
.hero-mini-features {
  position: relative;
  z-index: 2;
}
.hero-mini-features {
  margin-bottom: 24px;
}
.hero-waves {
  left: 0;
  right: 0;
  bottom: -46px;
  height: 96px;
  z-index: 1;
  pointer-events: none;
}
.wave-green {
  left: -4%;
  right: 46%;
  bottom: 38px;
  height: 52px;
}
.wave-purple {
  left: 24%;
  right: -5%;
  bottom: 12px;
  height: 58px;
}
.wave-cyan {
  left: -2%;
  right: 30%;
  bottom: -10px;
  height: 56px;
}
.hero-carousel {
  min-height: 390px;
}
.hero-carousel::before {
  display: none;
}
.hero-carousel-shell {
  width: min(100%, 760px);
  min-height: 390px;
  border-radius: 42px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(189,227,242,0.85), rgba(220,242,250,0.95));
  box-shadow: 0 16px 34px rgba(44, 19, 70, 0.08);
}
.hero-carousel-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 24%, rgba(255,255,255,.45), rgba(255,255,255,0) 22%);
  z-index: 1;
  pointer-events: none;
}
.hero-carousel-shell::after {
  display: none;
}
.hero-slide {
  border-radius: 42px;
  overflow: hidden;
  background: transparent;
}
.hero-slide::after {
  display: none;
}
.hero-slide img.hero-banner-art {
  width: 100%;
  min-height: 390px;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border-radius: 42px;
}
.hero-carousel-dots {
  left: 28px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(4px);
}
.hero-dot {
  box-shadow: 0 0 0 1px rgba(87,31,133,.18);
}
@media (max-width: 980px) {
  .hero {
    padding-bottom: 136px;
  }
  .hero-carousel,
  .hero-carousel-shell,
  .hero-slide img.hero-banner-art {
    min-height: 320px;
  }
}
@media (max-width: 680px) {
  .hero {
    padding-bottom: 118px;
  }
  .hero-mini-features {
    margin-bottom: 18px;
  }
  .hero-waves {
    bottom: -38px;
    height: 76px;
  }
  .wave-green { bottom: 28px; height: 40px; right: 42%; }
  .wave-purple { bottom: 10px; height: 44px; left: 20%; }
  .wave-cyan { bottom: -10px; height: 44px; right: 24%; }
  .hero-carousel,
  .hero-carousel-shell,
  .hero-slide img.hero-banner-art {
    min-height: 240px;
  }
  .hero-carousel-shell,
  .hero-slide,
  .hero-slide img.hero-banner-art {
    border-radius: 26px;
  }
}

/* ===== Paso 1 login institucional ===== */
.auth-card-wide { width: min(1120px, 100%); }
.compact-auth { width: min(560px, 100%); grid-template-columns: 1fr; }
.single-auth { padding: 2.4rem; }
.auth-mini-logo { width: 132px; margin: 0 auto 1rem; }
.auth-alert {
  padding: 12px 14px;
  border-radius: 16px;
  margin: 0 0 12px;
  font-weight: 800;
}
.auth-alert.error { background: #fff0f0; color: #a81d1d; }
.auth-alert.success { background: #eef9e8; color: #3f7d1d; }
.auth-alert.warning { background: #fff8e6; color: #8a6000; }
.auth-alert a { text-decoration: underline; }
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 800;
}
.legal-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #edf8fd 0%, #dbf0fb 100%);
  padding: 24px;
}
.legal-wrap { width: min(920px, 100%); margin: 0 auto; }
.legal-logo { width: 150px; margin-bottom: 14px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.simple-footer a { color: #dff2fb; font-weight: 800; }
@media (max-width: 680px) {
  .auth-card { border-radius: 22px; }
  .auth-side, .auth-form-wrap, .single-auth { padding: 1.4rem; }
  .auth-side h1 { font-size: 1.8rem; }
  .auth-links { display: grid; }
}

.auth-footer {
  width: min(1120px, calc(100% - 32px));
}
