/* Orthomax Digital – estilos (estructura inspirada en Greva, colores de marca Orthomax) */
:root {
  --primary: #0b1526;        /* negro azulado de la marca */
  --primary-2: #13233d;
  --accent: #0061aa;         /* azul Orthomax (iconos y logo) */
  --accent-light: #5aa9ec;
  --accent-soft: #e6f0fa;
  --secondary: #f1f5fa;
  --text: #5b6575;
  --white: #ffffff;
  --divider: rgba(11, 21, 38, 0.1);
  --dark-divider: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --font: "Inter Tight", system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(11, 21, 38, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--primary); margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; }
h1 span, h2 span { color: var(--accent); }
h3 a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding: 110px 0; }
.lead { font-size: 18px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--white); padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

/* Etiquetas y títulos */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: var(--accent-soft); padding: 7px 16px; border-radius: 100px; margin-bottom: 18px; }
.eyebrow-light { color: var(--white); background: rgba(255, 255, 255, .12); }
.section-title { max-width: 760px; margin-bottom: 56px; }
.section-title.center { margin-inline: auto; text-align: center; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }
.section-head h2 { margin: 0; max-width: 720px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px; padding: 15px 28px; border-radius: 100px; border: 1px solid transparent; cursor: pointer; transition: background .3s, color .3s, transform .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--primary); }
.btn-outline { border-color: var(--divider); color: var(--primary); background: var(--white); }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); }
.btn-light { background: var(--white); color: var(--accent); }
.btn-light:hover { background: var(--primary); color: var(--white); }
.btn-block { width: 100%; }
.icon-circle { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--white); font-size: 20px; }
.link-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--accent); }
.link-more i { transition: transform .3s; }
.link-more:hover i { transform: translateX(4px); }

/* Barra superior */
.topbar { background: var(--primary); color: rgba(255, 255, 255, .8); font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.topbar-info i { color: var(--accent-light); margin-right: 6px; }
.topbar-info a:hover { color: var(--white); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a:hover { color: var(--white); }

/* Encabezado y menú */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--divider); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 8px 30px rgba(11, 21, 38, .08); }
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-weight: 500; color: var(--primary); }
.nav > a, .sub-toggle { position: relative; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:not(.btn)::after, .sub-toggle::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .3s; }
.nav > a:not(.btn):hover::after, .nav > a.active::after, .has-sub:hover .sub-toggle::after, .has-sub.active .sub-toggle::after { width: 100%; }
.sub-toggle i { font-size: 11px; transition: transform .3s; }
.has-sub { position: relative; }
.submenu { position: absolute; top: calc(100% + 14px); left: -20px; min-width: 300px; background: var(--white); border-radius: var(--radius); box-shadow: 0 24px 50px rgba(11, 21, 38, .14); padding: 10px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.submenu a { padding: 10px 14px; border-radius: 10px; font-size: 15.5px; transition: background .2s, color .2s; }
.submenu a:hover { background: var(--accent-soft); color: var(--accent); }
.submenu .submenu-all { margin-top: 6px; border-top: 1px solid var(--divider); border-radius: 0 0 10px 10px; color: var(--accent); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-toggle i { transform: rotate(180deg); }
.nav > .nav-cta { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--primary); margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero de inicio */
.hero { position: relative; padding: 130px 0 120px; color: rgba(255, 255, 255, .85); background: linear-gradient(100deg, rgba(11, 21, 38, .96) 0%, rgba(11, 21, 38, .84) 48%, rgba(0, 97, 170, .35) 100%), url("../img/hero-radiografia.webp") center / cover no-repeat; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5.2vw, 70px); letter-spacing: -0.03em; }
.hero h1 span { color: var(--accent-light); display: block; }
.hero-lead { font-size: 20px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-info { background: rgba(255, 255, 255, .08); border: 1px solid var(--dark-divider); backdrop-filter: blur(12px); border-radius: var(--radius); padding: 36px; }
.hero-info h2 { color: var(--white); font-size: 24px; }
.hero-info ul { list-style: none; padding: 0; margin: 0 0 28px; }
.hero-info li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--dark-divider); }
.hero-info li i { color: var(--accent-light); margin-top: 5px; }
.hero-phone { display: flex; align-items: center; gap: 14px; color: var(--white); font-size: 24px; font-weight: 700; }
.hero-phone small { display: block; font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .7); }

/* Cifras */
.stats { background: var(--accent); color: rgba(255, 255, 255, .85); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .18); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; color: var(--white); font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; line-height: 1.1; }
.stat span { font-size: 15px; }

/* Encabezado de páginas internas */
.page-hero { position: relative; padding: 90px 0 80px; color: rgba(255, 255, 255, .85); background: linear-gradient(100deg, rgba(11, 21, 38, .96) 0%, rgba(11, 21, 38, .86) 55%, rgba(0, 97, 170, .45) 100%), var(--hero-img) center / cover no-repeat; }
.page-hero h1 { color: var(--white); font-size: clamp(36px, 5vw, 62px); letter-spacing: -0.03em; max-width: 900px; }
.page-hero h1 span { color: var(--accent-light); }
.page-hero-lead { font-size: 19px; max-width: 720px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 26px; color: rgba(255, 255, 255, .7); }
.breadcrumb i { font-size: 10px; opacity: .6; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--accent-light); }

/* Quiénes somos */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-images { position: relative; min-height: 580px; }
.about-img { position: absolute; border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-1 { inset: 0 18% 22% 0; background: var(--secondary); box-shadow: inset 0 0 0 1px var(--divider), var(--shadow); }
.about-img-1 img { object-position: 66% 0%; }
.about-img-2 { width: 52%; aspect-ratio: 1; right: 0; bottom: 0; background: var(--secondary); border: 8px solid var(--white); border-radius: 50%; }
.about-img-2 img { object-fit: contain; }
.about-circle { position: absolute; left: 26px; bottom: 30px; width: 150px; height: 150px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); }
.about-circle strong { font-size: 40px; line-height: 1; }
.about-circle span { font-size: 14px; line-height: 1.3; }
.about-content .btn { margin-top: 10px; }
.about-story { padding: 24px 0; margin: 10px 0 0; border-top: 1px solid var(--divider); }
.about-story h3 { font-size: 22px; }
.about-story p { margin: 0; }
.mv-section { background: var(--secondary); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: var(--white); border-radius: var(--radius); padding: 40px; }
.mv-card .icon-circle { margin-bottom: 18px; }
.mv-card h2 { font-size: 30px; }
.mv-card p { margin: 0; }

/* Servicios */
.services { background: var(--secondary); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-img.img-contain { padding: 18px; }
.service-img.img-contain img { object-fit: contain; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body { position: relative; padding: 46px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-icon { position: absolute; top: -32px; left: 26px; width: 64px; height: 64px; padding: 12px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.service-body h2, .service-body h3 { font-size: 22px; }
.service-body p { font-size: 15px; flex: 1; }

/* Diferencias */
.why { background: var(--primary); color: rgba(255, 255, 255, .78); }
.why h2 { color: var(--white); }
.why h2 span { color: var(--accent-light); }
.why-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 20px 0 34px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--dark-divider); }
.why-item i { color: var(--accent-light); font-size: 18px; margin-top: 4px; width: 22px; text-align: center; }
.why-item p { margin: 0; font-size: 15.5px; }
.why-media { position: relative; }
.why-media > img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 85%; width: 100%; }
.why-box { position: absolute; left: -30px; bottom: 30px; right: 30px; display: flex; gap: 16px; align-items: center; background: var(--white); color: var(--text); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.why-box strong { color: var(--primary); font-size: 18px; }
.why-box p { margin: 4px 0 0; font-size: 15px; }

/* Tecnología */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.tech-media { background: var(--secondary); border-radius: var(--radius); padding: 40px; }
.services .tech-media { background: var(--white); }
.tech-media.round { border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; }
.tech-content .btn { margin-top: 26px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list.single { grid-template-columns: 1fr; }
.check-list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--primary); }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 10px; display: grid; place-items: center; }

/* Paquetes */
.packages { background: var(--secondary); }
.packages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.package-card { position: relative; background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.package-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.package-card.featured { background: var(--primary); border-color: var(--primary); color: rgba(255, 255, 255, .8); }
.package-card.featured h3 { color: var(--white); }
.package-icon { width: 70px; height: 70px; margin-bottom: 20px; }
.package-card h3 { font-size: 21px; min-height: 2.3em; }
.package-card ul { list-style: none; padding: 18px 0 0; margin: 0 0 24px; border-top: 1px solid var(--divider); flex: 1; }
.package-card.featured ul { border-color: var(--dark-divider); }
.package-card li { position: relative; padding: 6px 0 6px 26px; font-size: 15px; }
.package-card li::before { content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 7px; color: var(--accent); }
.package-card.featured li::before { color: var(--accent-light); }
.package-count { flex: 1; font-size: 15px; margin-bottom: 22px; }
.packages-grid.compact .package-card { padding: 28px 24px; }
.package-tag { position: absolute; top: 20px; right: 20px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 100px; }

/* Educación continua */
.education { background: linear-gradient(rgba(11, 21, 38, .9), rgba(11, 21, 38, .9)), url("../img/banner-tomografia.webp") center / cover; color: rgba(255, 255, 255, .8); }
.education h2 { color: var(--white); }
.education h2 span { color: var(--accent-light); }
.education-content .btn { margin-top: 10px; }
.education-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.education-media { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--dark-divider); background: radial-gradient(ellipse at 50% 110%, rgba(0, 97, 170, .55), transparent 60%), radial-gradient(ellipse at 50% -10%, rgba(90, 169, 236, .25), transparent 55%), #070d19; }
.education-logo { width: 64%; transition: transform .6s; }
.education-media:hover .education-logo { transform: scale(1.04); }
.education-caption { position: absolute; left: 20px; bottom: 18px; font-size: 14px; color: rgba(255, 255, 255, .75); display: flex; gap: 8px; align-items: center; }
.play-btn { width: 90px; height: 90px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; font-size: 26px; box-shadow: 0 0 0 14px rgba(0, 97, 170, .3); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 24px rgba(0, 97, 170, 0); } }

/* Franja de llamada a la acción */
.cta-band { padding: 100px 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(110deg, var(--accent) 0%, #004a85 100%); color: rgba(255, 255, 255, .85); border-radius: var(--radius); padding: 48px 52px; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3vw, 38px); margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.cta-phone { color: var(--white); font-weight: 700; font-size: 20px; display: inline-flex; gap: 10px; align-items: center; }
.services + .cta-band, .packages + .cta-band { background: var(--secondary); padding-top: 0; }

/* Detalle de servicio / paquete */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.detail-intro { font-size: 20px; color: var(--primary); padding-bottom: 30px; border-bottom: 1px solid var(--divider); margin-bottom: 10px; }
.detail-block { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--divider); }
.detail-img { border-radius: var(--radius); overflow: hidden; background: var(--secondary); }
.detail-img img { width: 100%; }
.detail-img.img-contain { background: var(--primary); padding: 14px; }
.detail-block h2 { font-size: 26px; }
.detail-block p { margin: 0; }
.detail-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--secondary); border-radius: var(--radius); padding: 28px 30px; margin-top: 40px; }
.detail-cta strong { color: var(--primary); font-size: 20px; }
.detail-cta p { margin: 4px 0 0; }
.detail-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
.side-box { background: var(--secondary); border-radius: var(--radius); padding: 28px; }
.side-box h3 { font-size: 20px; margin-bottom: 14px; }
.side-links { display: flex; flex-direction: column; gap: 8px; }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); padding: 14px 18px; border-radius: 10px; color: var(--primary); font-weight: 500; font-size: 15.5px; transition: background .25s, color .25s; }
.side-links a i { font-size: 12px; color: var(--accent); }
.side-links a:hover { background: var(--accent); color: var(--white); }
.side-links a:hover i { color: var(--white); }
.side-box.dark { background: var(--primary); color: rgba(255, 255, 255, .75); }
.side-box.dark h3 { color: var(--white); }
.side-phone { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.side-phone i { color: var(--accent-light); }
.package-summary { display: flex; gap: 24px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--divider); margin-bottom: 30px; }
.package-summary img { flex: none; width: 84px; height: 84px; }
.package-summary h2 { font-size: clamp(24px, 2.6vw, 32px); }
.package-summary p { margin: 0; font-size: 18px; }
.items-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.item-card { background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.item-img { aspect-ratio: 16 / 10; background: var(--primary); display: grid; place-items: center; overflow: hidden; }
.item-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.item-body { position: relative; padding: 22px 24px 24px; }
.item-num { position: absolute; top: -22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.item-body h3 { font-size: 20px; margin-bottom: 6px; }
.item-body p { margin: 0; font-size: 15.5px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; background: var(--secondary); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { font-size: 18px; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: 15.5px; }
.contact-card .link-more { font-size: 15px; margin-top: 6px; }
.contact-card a:not(.link-more):hover { color: var(--accent); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--secondary); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* Pie de página */
.footer { background: #050a13; color: rgba(255, 255, 255, .7); padding: 70px 0 0; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; background: var(--accent); border-radius: var(--radius); padding: 34px 40px; margin-bottom: 70px; }
.footer-cta h2 { color: var(--white); margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 28px); }
.footer-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { width: 280px; margin-bottom: 20px; }
.footer h3 { color: var(--white); font-size: 19px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.footer-links p { margin: 0; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--dark-divider); transition: background .3s; }
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-bottom { border-top: 1px solid var(--dark-divider); padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.dev-credit { display: inline-flex; align-items: center; gap: 12px; opacity: .8; transition: opacity .3s; }
.dev-credit:hover { opacity: 1; }
.dev-credit img { height: 32px; width: auto; }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; text-align: center; } }

/* WhatsApp flotante */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 25px rgba(0, 0, 0, .25); transition: transform .3s; }
.whatsapp-float:hover { transform: scale(1.08); }

/* Pantalla de carga */
.preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 120%, rgba(0, 97, 170, .45), transparent 60%), var(--primary); transition: opacity .6s ease, visibility .6s ease; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; animation: preloader-in .6s ease both; }
.preloader img { width: min(300px, 70vw); animation: preloader-pulse 1.6s ease-in-out infinite; }
.preloader-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.preloader-bar span { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); animation: preloader-bar 1.1s ease-in-out infinite; }
.preloader p { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader.hide .preloader-inner { transform: scale(.94); transition: transform .6s ease; }
body.is-loading { overflow: hidden; }
@keyframes preloader-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes preloader-pulse { 50% { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(90, 169, 236, .45)); } }
@keyframes preloader-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* Entrada del encabezado y del hero (se activa al quitar la pantalla de carga) */
.topbar, .header { transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; }
body.is-loading .topbar, body.is-loading .header { opacity: 0; transform: translateY(-100%); }
.header { transition-delay: .08s; }
.nav > *, .header-btn, .logo { transition: opacity .5s ease, transform .5s ease; }
body.is-loading .nav > *, body.is-loading .header-btn, body.is-loading .logo { opacity: 0; transform: translateY(-12px); }
.logo { transition-delay: .25s; }
.nav > *:nth-child(1) { transition-delay: .3s; } .nav > *:nth-child(2) { transition-delay: .36s; }
.nav > *:nth-child(3) { transition-delay: .42s; } .nav > *:nth-child(4) { transition-delay: .48s; }
.nav > *:nth-child(5) { transition-delay: .54s; } .nav > *:nth-child(6) { transition-delay: .6s; }
.header-btn { transition-delay: .66s; }
.anim-in { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
body.is-loading .anim-in { opacity: 0; transform: translateY(34px); }
body.is-loading .anim-in.from-right { transform: translateX(50px); }

/* Animación de aparición de bloques al hacer scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.zoom { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.visible .service-img img, .reveal.visible .item-img img { animation: img-in 1.2s ease both; animation-delay: calc(var(--d, 0s) + .15s); }
@keyframes img-in { from { transform: scale(1.12); filter: blur(4px); } }
.section-title .eyebrow, .section-head .eyebrow { transition: letter-spacing .9s ease; }
.reveal:not(.visible) .eyebrow { letter-spacing: .3em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .anim-in, .topbar, .header, .nav > *, .logo, .header-btn { opacity: 1 !important; transform: none !important; transition: none !important; }
  .play-btn, .preloader img, .preloader-bar span { animation: none; }
  .reveal.visible .service-img img, .reveal.visible .item-img img { animation: none; }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .header-btn { display: none; }
}
@media (max-width: 1100px) {
  .services-grid, .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 991px) {
  .section { padding: 80px 0; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px 16px 20px; border-bottom: 1px solid var(--divider); box-shadow: 0 20px 30px rgba(11, 21, 38, .08); display: none; max-height: calc(100vh - 90px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a:not(.btn), .sub-toggle { padding: 14px 0; border-bottom: 1px solid var(--divider); justify-content: space-between; width: 100%; }
  .nav > a::after, .sub-toggle::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; display: none; }
  .has-sub.open .submenu { display: flex; }
  .has-sub.open .sub-toggle i { transform: rotate(180deg); }
  .has-sub:hover .sub-toggle i { transform: none; }
  .nav > .nav-cta { display: inline-flex; margin-top: 16px; }
  .hero { padding: 90px 0 80px; }
  .hero-grid, .about-grid, .why-grid, .tech-grid, .education-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .tech-grid.reverse .tech-media { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); }
  .about-images { min-height: 460px; }
  .why-box { left: 16px; right: 16px; }
  .cta-band-inner { padding: 36px 30px; }
  .page-hero { padding: 70px 0 60px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-info span { display: none; }
  .logo img { height: 40px; }
  .services-grid, .packages-grid, .mv-grid, .why-list, .check-list, .footer-grid, .items-grid { grid-template-columns: 1fr; }
  .about-images { min-height: 380px; }
  .about-circle { width: 120px; height: 120px; left: 12px; bottom: 12px; }
  .about-circle strong { font-size: 30px; }
  .hero-info { padding: 26px; }
  .tech-media { padding: 20px; }
  .mv-card { padding: 28px; }
  .footer-cta { padding: 28px 24px; }
  .footer-logo { width: 220px; }
  .detail-block { grid-template-columns: 1fr; gap: 20px; }
  .package-summary { flex-direction: column; align-items: flex-start; }
  .map, .map iframe { min-height: 340px; }
}
