/* =============================== */
/* AJUSTES GENERALES */
/* =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Fredoka", sans-serif;
    background: #fff7fb;
    color: #333;
}

h1, h2, h3 {
    font-weight: 700;
}

img {
    max-width: 100%;
}


/* =============================== */
/* NAVBAR */
/* =============================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 18px 0;
    box-shadow: 0 4px 12px #00000015;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #ff4d6d;
    text-decoration: none;
}

.nav-links a {
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
    color: #444;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 3px;
    background: #ff4d6d;
    border-radius: 2px;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ff4d6d;
}


.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 27px;
    height: 3px;
    margin: 5px;
    background: #444;
    border-radius: 5px;
}

/* BOTÓN WHATSAPP EN NAVBAR */
.nav-ws-btn {
    background: #ff4d6d;
    color: white !important;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s ease;
    text-decoration: none !important;
}

.nav-ws-btn:hover {
    background: #ff4d6d;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.nav-ws-btn:hover::after {
    display: none !important;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}


/* MOBILE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        width: 100%;
        position: absolute;
        top: 75px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 4px 12px #00000025;
    }

    .logo img {
        height: 40px;
    }
    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .nav-ws-btn {
        display: flex;
        justify-content: center;
        width: 50%;
        margin: 10px auto;
        font-size: 15px;
        padding: 8px 10px; 
    }
}

/* =============================== */
/* SECCIÓN SUPERIOR */
/* =============================== */
.detalle-header {
    width: 90%;
    max-width: 1300px;
    margin: 140px auto 70px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.galeria-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 3;
    background: #fff7fb;
    border-radius: 18px;
}


.galeria-wrapper {
    height: 100%;
    display: flex;
    transition: transform .4s ease;
}


.galeria-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;        
    object-position: center center;
    background: #fff7fb; 
    flex-shrink: 0;
}


.galeria-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;  
    border: none;
    color: gray;
    font-size: 34px;
    cursor: pointer;
    padding: 0;
}

.galeria-btn.prev { left: 15px; }
.galeria-btn.next { right: 15px; }

.detalle-descripcion {
    flex: 1;
}

.detalle-descripcion h1 {
    font-size: 46px;
    color: #ff4d6d;
    margin-bottom: 15px;
}

.detalle-descripcion p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #555;
}



/* =============================== */
/* ESPECIFICACIONES + REQUISITOS */
/* =============================== */

.spec-req-row {
    width: 90%;
    max-width: 1300px;
    margin: 50px auto;
    display: flex;
    gap: 40px;
}

.panel {
    flex: 1;
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 20px #00000010;
}

.panel h2 {
    font-size: 28px;
    color: #6a00f4;
    margin-bottom: 20px;
}

.panel-lista {
    list-style: none;
}

.panel-lista li {
    font-size: 19px;
    margin: 12px 0;
}



/* =============================== */
/* FAQ */
/* =============================== */

.faq-section {
    width: 90%;
    max-width: 1100px;
    margin: 60px auto 80px auto;
}

.faq-section h2 {
    font-size: 32px;
    color: #6a00f4;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 22px;
    color: #ff4d6d;
}

.faq-item p {
    font-size: 18px;
    margin-top: 6px;
}

/* =============================== */
/* RESPONSIVE */
/* =============================== */

@media (max-width: 768px) {
    .detalle-header {
        flex-direction: column;
        margin-top: 100px;
    }

    .galeria-container {
        max-height: 250px;
    }

    .detalle-descripcion h1 {
        font-size: 34px;
        text-align: center;
    }

    .detalle-descripcion p {
        text-align: justify;
    }

    .spec-req-row {
        flex-direction: column;
        margin-top: 20px;
    }

    .faq-section h2 {
        text-align: center;
    }
}





/* =============================== */
/* CTA FINAL */
/* =============================== */
.cta-final {
    position: relative;
    height: 50vh;
    background: url('../../media/cta.jpg') center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
}

.cta-content p {
    font-size: 20px;
    margin: 10px 0 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 14px 28px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: #1ebe5d;
    transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 768px) {
    .cta-final {
        height: 40vh;
        background-attachment: scroll; /* Mejor soporte en iOS */
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-btn {
        font-size: 18px;
    }
}

/* =============================== */
/* FOOTER */
/* =============================== */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 16px;
}

.footer .creditos {
    margin-top: 5px;
    font-size: 15px;
    color: #cccccc;
}

.footer .creditos a {
    color: #ff4d6d;
    text-decoration: none;
}

.footer .creditos a:hover {
    text-decoration: underline;
}

.footer-top {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto 30px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    text-align: left;
}

.footer-logo {
    font-size: 24px;
    color: #ff4d6d;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-desc {
    color: #cccccc;
    line-height: 1.6;
    max-width: 350px;
}

.footer-right {
    text-align: left;
}

.footer-contact {
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-contact i {
    color: #ff4d6d;
    width: 20px;
    text-align: center;
}

.footer-contact:hover {
    color: #ffd93d;
    transform: translateX(4px);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: #555;
    margin: 25px 0;
}

.footer-logo img {
    height: 55px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

/* =============================== */
/* RESPONSIVE */
/* =============================== */
@media (max-width: 768px) {
    .footer-logo {
        text-align: center;
        width: 100%;
    }

    .footer-logo img {
        margin: auto;
        display: block;
    }
    

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-right {
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
    }
}


/* =============================== */
/* BURBUJA FLOTANTE WHATSAPP */
/* =============================== */
.ws-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 6px 15px #00000040;
    transition: 0.3s ease;
    text-decoration: none !important;
}

.ws-float:hover {
    background: #1ebe5d;
    transform: scale(1.1);
}
