/* ============================================
   NEXIAL.MED - COLORS FIXED
   Fondo: #f2f7fa
   Texto: #5a7985
   Enlaces: #359fc2
   Títulos: #0a76b6
   Botones: #067bc6
   Header: #0a76b6 (más suave)
   Menú: fondo blanco, texto azul
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; }
body {
    font-family: 'Lato', sans-serif;
    background: #f2f7fa;
    overflow-x: hidden;
    color: #5a7985;
    line-height: 1.8;
}

/* HEADER */
header {
    background-color: #0a76b6;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    overflow: visible;
}
.logo-container {
    height: 100%;
    width: 200px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.logo-container img {
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

nav { display: flex; align-items: flex-end; height: 100%; }
nav a {
    text-decoration: none;
    background: #ffffff;
    color: #0a76b6;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 14px;
    margin-left: 4px;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    position: relative;
    bottom: 0;
}
nav a:hover {
    background: #067bc6;
    color: #ffffff;
    bottom: 6px;
}

/* HERO */
.hero-section { position: relative; width: 100%; min-height: 520px; overflow: hidden; }
.hero-img { display: block; width: 100%; height: 520px; object-fit: cover; object-position: top center; }
.burbuja {
    position: absolute;
    top: 50%; left: 5%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 35px 40px;
    border-radius: 50px 50px 50px 5px;
    max-width: 420px;
    border-left: 8px solid #067bc6;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.burbuja h1 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: #0a76b6; margin-bottom: 12px; line-height: 1.25; }
.burbuja p { font-style: italic; font-size: 1rem; line-height: 1.6; color: #5a7985; margin-bottom: 8px; }
.burbuja .autor { font-weight: 700; font-style: normal; color: #067bc6; font-size: 1rem; margin-top: 10px; }
.btn {
    display: inline-block;
    margin-top: 18px;
    background: #067bc6;
    color: #ffffff;
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6,123,198,0.3);
}
.btn:hover { transform: scale(1.05); background: #0a76b6; }

/* TABLA INFO */
.info-grid-section { padding: 70px 5%; background: #f2f7fa; }
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 70px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
.info-celda.info-texto { text-align: justify; }
.info-celda.info-texto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem; color: #0a76b6;
    margin-bottom: 18px; line-height: 1.3; text-align: left;
}
.info-celda.info-texto p { color: #5a7985; font-size: 1rem; line-height: 1.85; margin-bottom: 14px; }
.info-celda.info-imagen { display: flex; justify-content: center; align-items: flex-start; }
.info-celda.info-imagen img {
    width: 100%; max-width: 440px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: block; margin: 0 auto;
}
.info-lista { list-style: none; margin: 14px 0 18px; }
.info-lista li { padding: 7px 0 7px 28px; position: relative; color: #5a7985; font-size: 1rem; line-height: 1.7; text-align: justify; }
.info-lista li::before { content: '✓'; position: absolute; left: 0; color: #067bc6; font-weight: 700; font-size: 1.1rem; }

/* PASOS */
.pasos-section { background-color: #e8e8e8; padding: 30px 5%; margin-bottom: 0; }
.pasos-tabla { width: 100%; max-width: 1100px; margin: 0 auto; border-collapse: collapse; table-layout: fixed; }
.pasos-titulo { text-align: center; padding-bottom: 15px; }
.pasos-titulo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; color: #0a76b6;
    font-weight: 700;
}
.paso-celda { width: 33.33%; text-align: center; padding: 10px 30px; vertical-align: top; }
.paso-celda h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; font-weight: 700;
    color: #067bc6;
    line-height: 1;
    margin-bottom: 10px;
}
.paso-celda p { font-size: 0.95rem; color: #5a7985; line-height: 1.7; }
.pasos-boton { text-align: center; padding-top: 20px; padding-bottom: 10px; }
.btn-why {
    display: inline-block;
    color: #067bc6;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #067bc6;
    padding-bottom: 3px;
    transition: opacity 0.3s;
}
.btn-why:hover { opacity: 0.7; }

/* PROMOCIONES */
.promociones-section { background: #f2f7fa; padding: 70px 5%; }
.promociones-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; color: #0a76b6;
    text-align: center; margin-bottom: 40px;
}
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; max-width: 1100px; margin: 0 auto; }
.promo-card { background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.promo-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.promo-card img { width: 100%; height: 170px; object-fit: cover; }
.promo-card-body { padding: 20px; }
.promo-card-body h3 { font-size: 1rem; font-weight: 700; color: #067bc6; margin-bottom: 8px; text-transform: uppercase; }
.promo-card-body .precio-antes { font-size: 0.9rem; color: #A8A696; text-decoration: line-through; }
.promo-card-body .precio { font-size: 1.3rem; font-weight: 700; color: #0a76b6; margin: 6px 0 14px; }
.promo-card-body .btn-promo { display: block; text-align: center; background: #067bc6; color: #ffffff; padding: 11px 0; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: background 0.3s; }
.promo-card-body .btn-promo:hover { background: #0a76b6; }

/* CONTACTO SECTION */
.contacto-section {
    background: url('../../images/fondobot.webp') center/cover no-repeat;
    position: relative;
    padding: 80px 5%;
    text-align: center;
}
.contacto-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #0a76b6;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.contacto-section p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(37,211,102,0.35);
    position: relative;
    z-index: 2;
}
.btn-whatsapp:hover { transform: scale(1.05); background: #1ebe5d; }
.btn-whatsapp svg { width: 26px; height: 26px; fill: white; }

/* FOOTER */
footer { background: #0a2a3a; color: rgba(255,255,255,0.8); padding: 50px 5% 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #0a76b6; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.footer-col p, .footer-col a { font-size: 0.95rem; line-height: 2; color: rgba(255,255,255,0.7); text-decoration: none; display: block; transition: color 0.3s; }
.footer-col a:hover { color: #0a76b6; }
.footer-col img { height: 150px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #0a76b6; text-decoration: none; }
.footer-bottom a:hover { color: #ffffff; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    html { font-size: 17px; }
    .info-grid { gap: 40px 50px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    html { font-size: 16px; }
    .burbuja { max-width: 55%; padding: 25px 30px; }
    .burbuja h1 { font-size: 1.4rem; }
    .retoma-section { flex-direction: column; }
    .retoma-img { flex: unset; width: 100%; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 768px) {
    html { font-size: 16px; }
    .info-grid { grid-template-columns: 1fr; gap: 30px; }
    .info-celda.info-imagen img { max-width: 100%; }
    .pasos-tabla, .pasos-tabla tbody, .pasos-tabla tr, .paso-celda, .pasos-titulo, .pasos-boton { display: block; width: 100%; }
    .paso-celda { padding: 15px 8%; }
    .pasos-titulo { padding-bottom: 10px; }
    .pasos-boton { padding-top: 15px; padding-bottom: 5px; }
}
@media (max-width: 600px) {
    html { font-size: 16px; }
    header { height: 70px; padding: 0 4%; }
    .logo-container { width: 140px; min-width: 140px; }
    .logo-container img { max-height: 50px; }
    nav a { padding: 8px 8px; font-size: 0.7rem; letter-spacing: 0; }
    .hero-section { min-height: 480px; }
    .hero-img { height: 480px; }
    .burbuja { max-width: 88%; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 22px 25px; }
    .burbuja h1 { font-size: 1.35rem; }
    .retoma-section { padding: 50px 4%; gap: 30px; }
    .promociones-section { padding: 50px 4%; }
    .contacto-section { padding: 60px 4%; }
    .info-grid-section { padding: 50px 4%; }
    .pasos-section { padding: 25px 4%; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
    html { font-size: 15px; }
    nav a { padding: 6px 6px; font-size: 0.65rem; }
    .burbuja { max-width: 92%; padding: 18px 20px; }
    .burbuja h1 { font-size: 1.2rem; }
}

/* Owl Carousel */
.owl-carousel { position: relative; }
.owl-carousel .item { padding: 10px; }
.owl-carousel .owl-nav {
    position: absolute; top: 50%; width: 100%;
    transform: translateY(-50%); pointer-events: none; left: 0;
}
.owl-carousel .owl-nav button {
    position: absolute; pointer-events: auto;
    background: rgba(6,123,198,0.6) !important;
    border: none !important; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.owl-carousel .owl-nav button.owl-prev { left: -15px; }
.owl-carousel .owl-nav button.owl-next { right: -15px; }
.owl-carousel .owl-nav button span { display: none; }
.owl-carousel .owl-nav button.owl-prev::before { content: "←"; font-size: 30px; color: white; line-height: 1; }
.owl-carousel .owl-nav button.owl-next::before { content: "→"; font-size: 30px; color: white; line-height: 1; }
@media (max-width: 768px) {
    .owl-carousel .owl-nav button.owl-prev { left: -10px; }
    .owl-carousel .owl-nav button.owl-next { right: -10px; }
    .owl-carousel .owl-nav button { width: 35px; height: 35px; }
    .owl-carousel .owl-nav button::before { font-size: 24px; }
}
@media (max-width: 576px) {
    .owl-carousel .owl-nav button.owl-prev { left: -5px; }
    .owl-carousel .owl-nav button.owl-next { right: -5px; }
    .owl-carousel .owl-nav button { width: 30px; height: 30px; }
    .owl-carousel .owl-nav button::before { font-size: 20px; }
}

/* Tarjetas de productos */
.home-program {
    overflow: hidden; margin-bottom: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.home-program-img { position: relative; overflow: hidden; }
.home-program-img img { width: 100%; height: auto; display: block; }
.home-program-text { padding: 15px; background: #ffffff; text-align: center; }
.home-program-text h3 { font-size: 1.1rem; margin-bottom: 8px; color: #067bc6; }
.home-program-text p { font-size: 0.85rem; color: #8a8070; margin-bottom: 10px; }
.home-program-price { font-weight: bold; color: #0a76b6; font-size: 1.2rem; }
.home-program a { text-decoration: none; color: inherit; }
#productosCarousel { width: 90%; margin: 0 auto; padding: 0; }
@media (max-width: 768px) { #productosCarousel { width: 95%; } }