﻿/* =========================
   VARIABLES Y RESET
========================= */

:root {
    /* Azul corporativo */
    --primary: #1e3a8a; /* azul fuerte */
    --primary-dark: #0b1f4b; /* azul profundo */
    /* Rojo acento */
    --accent: #c1121f; /* rojo elegante */
    --accent-soft: #f8d7da; /* rojo suave */
    /* Neutros */
    --secondary: #475569;
    --light: #f5f7fb;
    --white: #ffffff;
    --text: #1e293b;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(0,0,0,.08);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    position: relative;
}

hr {
    background-color: var(--accent);
    height: 3px; 
    border: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Montserrat", sans-serif;
    background-image: url('../img/sl-113022-54210-20.jpg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    padding-bottom: 0px;
}

/* =========================
   NAVBAR
========================= */
.main{
    flex: 1;
}

.main-content {
    display: flex;
    flex-direction: column;
}

.main-navbar {
    background: var(--white);
    border-bottom: 5px solid var(--accent);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
    justify-content: space-between;
    padding: 15px 40px;
    box-shadow: var(--shadow);
}

    .main-navbar .logo img {
        height: 100px;
    }

    .main-navbar nav a {
        margin-left: 25px;
        text-decoration: none;
        font-weight: 500;
        color: var(--text);
        position: relative;
    }

        .main-navbar nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 0%;
            height: 2px;
            background: var(--accent);
            transition: .3s;
        }

        .main-navbar nav a:hover::after {
            width: 100%;
        }

/*menu burger*/

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

    .burger span {
        width: 25px;
        height: 3px;
        background: var(--text);
        border-radius: 2px;
    }

@media (max-width: 768px) {

    .main-navbar {
        padding: 15px 20px;
    }

        .main-navbar .logo img {
            height: 70px;
        }

    .burger {
        display: flex;
    }

    .main-navbar nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        display: none;
        flex-direction: column;
        box-shadow: var(--shadow);
        border-bottom: 4px solid var(--accent);
        z-index: 1001;
    }

        .main-navbar nav a {
            margin: 0;
            padding: 15px;
            text-align: center;
            border-top: 1px solid #eee;
        }

        .main-navbar nav.active {
            display: flex;
        }
}



/* =========================
   HERO / CAROUSEL
========================= */

.hero {
    position: relative;
    height: 85vh;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    z-index: 1;
}

.carousel {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

    .slide.active {
        opacity: 2;
    }

    .slide-1 {
        background-image: url('/img/img-20210723-wa0022.jpg');
    }

    .slide-2 {
        background-image: url('/img/img-20210723-wa0026.jpg');
    }

    .slide-3 {
        background-image: url('/img/img-20210723-wa0027.jpg');
    }

    .slide-4 {
        background-image: url('/img/IMG-20210723-WA0025.jpg');
    }

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(11,31,75,.75), rgba(11,31,75,.85) );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    max-width: 700px;
    color: var(--white);
}

    .hero-content h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        opacity: .95;
    }

/* =========================
   BOTONES
========================= */

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    margin-right: 10px;
}

    .btn-primary:hover {
        background: #9f0e18;
        transform: translateY(-2px);
        text-decoration:none;
    }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

    .btn-secondary:hover {
        background: var(--white);
        color: var(--primary-dark);
        text-decoration: none;
    }

/* =========================
   SERVICIOS
========================= */

.services {
    margin: 80px auto 60px;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 0 20px;
}
    .services .card {
        background: var(--white);
        display:flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 30px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        font-weight: 600;
        border-top: 4px solid var(--accent);
        transition: .3s;
    }

        .services .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0,0,0,.12);
            color: var(--primary);
        }

        .services .card .icon {
            font-size: 2.2rem;
        }

            /* Colores */
            .icon.blue {
                color: var(--primary);
            }

            .icon.red {
                color: var(--accent);
            }

@media (max-width: 576px) {

    .services {
        grid-template-columns: 1fr;
    }

        .services .card {
            padding: 18px 14px;
            font-size: 0.9rem;
        }

            .services .card .icon {
                font-size: 2rem;
            }
}

.service-detail {
    max-width: 1300px;
    margin: 30px auto 0;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;

}

    .service-detail.show {
        opacity: 1;
        visibility: visible;
    }

    .service-detail h3 {
        color: var(--accent);
        margin-bottom: 12px;
        font-weight: 700;
        letter-spacing: .3px;
    }

.services .card:hover .icon {
    transform: scale(1.15);
}

.services .card .icon {
    transition: transform .3s ease;
}


/* =========================
   PAGE CONTENT
========================= */

.page-content {
    padding: 60px 0;
    justify-content: center;
    text-align: center;
}

    .page-content .container {
        background: var(--white);
        padding: 40px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
       
    }



/* =========================
   FOOTER
========================= */

.footer {
    background: linear-gradient( 90deg, color-mix(in srgb, var(--primary-dark) 75%, transparent), color-mix(in srgb, var(--primary) 75%, transparent) );
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
}

    .footer p {
        margin: 0;
        font-size: 0.8rem;
    }

    /* Logo auspiciador */
    .footer .logo-auspicio {
        margin-top: 12px;
    }

        .footer .logo-auspicio img {
            max-width: 120px;
            padding: 6px;
            opacity: 0.9;
            background-color: white;
            border: 1px solid white;
            border-radius: 6px;
        }


/* =========================
   UTILIDADES
========================= */

.disabled {
    opacity: .5;
    pointer-events: none;
}

.enabled {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .hero-content {
        margin: 10px auto;
        gap: 20px;
    }

        .hero-content h1 {
            font-size: 2.2rem;
        }

    
}



/* =========================
   WHATSAPP FLOAT BUTTON
========================= */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 15px 35px rgba(0,0,0,.35);
        color: #fff;
        text-decoration:none;
    }

    /* Pequeña animación pulse */
    .whatsapp-float::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(37, 211, 102, 0.4);
        animation: pulse 2s infinite;
        z-index: -1;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

/*Mensaje de success formulario contacto*/
.success-msg {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-msg {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 20px;
}


/*--Loader --*/


.loading-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

    .loading-content img {
        width: 80px;
        margin-bottom: 15px;
    }

    .loading-content p {
        font-weight: 600;
        color: var(--accent);
    }

    /*store botons*/
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .store-btn i {
        font-size: 1.4rem;
    }

    /* Hover general */
    .store-btn:hover {
        transform: scale(1.04);
        color: #fff;
    }

    /* Google Play */
    .store-btn.google:hover {
        background-color: var(--accent);
        text-decoration: none;
    }

    /* App Store */
    .store-btn.apple:hover {
        background-color: var(--primary);
        text-decoration: none;
    }

/* Mobile centrado */
@media (max-width: 768px) {
    .store-buttons {
        justify-content: center;
    }
}


/*Lista ol*/

.promo-list {
    counter-reset: item;
    list-style: none;
    text-align:left;
}

    .promo-list li {
        counter-increment: item;
        position: relative;
        text-align: justify;
        text-justify: inter-word;
        padding-left: 60px;
    }

        .promo-list li::before {
            content: counter(item) ".";
            position: absolute;
            left: 0;
            color: darkred;
            font-weight: 800;
        }

.promo-list-ul {
    padding-left: 20px;
    text-align: left;
}

    .promo-list-ul li {
        margin-bottom: 10px;
        line-height: 1.5;
        text-align: justify;
    }

        .promo-list-ul li::marker {
            color: darkred;
            font-weight: 700;
        }

.promo-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
}

.promo-intro,
.promo-details,
.promo-disclaimer {
    margin-bottom: 40px;
}

    .promo-details h5 {
        font-weight: 600;
    }

.text-justify {
    text-align: justify;
}

.promo-disclaimer {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    font-size: 0.9rem;
}


