/* =============================== */
/* 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%;
}

/* =============================== */
/* ANIMACIONES GLOBALES */
/* =============================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .2s; }
.reveal-delay-2 { transition-delay: .4s; }
.reveal-delay-3 { transition-delay: .6s; }


/* =============================== */
/* 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; 
    }
}

/* =============================== */
/* HERO INFLABLES */
/* =============================== */
.hero-inflables {
    width: 100%;
    height: 50vh;
    background: url('../media/hero_secciones.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
}

.hero-inflables::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-inflables-content {
    position: relative;
    z-index: 2;
}

.hero-inflables-content h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero-inflables-content p {
    font-size: 20px;
    margin-top: 10px;
}

/* ==== MOBILE ==== */
@media (max-width: 768px) {
    .hero-inflables {
        height: 40vh;
    }
    .hero-inflables-content h1 {
        font-size: 32px;
    }
}


/* =============================== */
/* CATÁLOGO */
/* =============================== */
.catalogo {
    padding: 80px 0;
    text-align: center;
}

.catalogo h2 {
    font-size: 36px;
    color: #ff4d6d;
    margin-bottom: 40px;
}

.catalogo-grid {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.inflable-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 4px 12px #00000015;
    transition: 0.3s;
}

.inflable-card:hover {
    transform: scale(1.03);
}

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 15px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.inflable-card h3 {
    margin-top: 10px;
    font-size: 22px;
    color: #6a00f4;
}

.medidas {
    color: #777;
    margin-top: 5px;
}

.precio {
    display: inline-block;
    background: #ffd93d;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-detalle {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: #6a00f4;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.25s;
}

.btn-detalle:hover {
    background: #5800c0;
    transform: translateY(-2px);
}


/* ==== MOBILE ==== */
@media (max-width: 768px) {
    .catalogo-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================== */
/* 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);
}
