@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================================= */
/* VARIABLES GLOBALES Y BASE                 */
/* ========================================= */
:root {
    --primary-color: #224c63;
    --background-color: #7ccede;
    --dark-color: #151515;
}

html {
    font-size: 62.5%;
    font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative; 
}

/* ========================================= */
/* FONDO FIJO MULTIPLATAFORMA */
/* ========================================= */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(#00000080, #00000080), url('../IMG/BG/bg3.png'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -100; /* Lo manda detrás de todos los demás elementos de tu página */
}

/*UTILIDADES*/
.container {
    max-width: 120rem;
    margin: 0 auto;	
    padding: 0 2rem; 
}

/* ========================================= */
/* HEADER Y NAVEGACIÓN                       */
/* ========================================= */
.container-hero {
    background-color: var(--background-color);
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0; 
    width: 100%;
    box-sizing: border-box;
}

.container-logo {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 0.5rem;
    padding: 0; 
    width: 100%;
}

.container-logo img {
    width: 230px;
    height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto; 
}

.container-logo a {
    cursor: pointer;
    display: flex;
    justify-content: center;
}

.container-navbar {
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.navbar .fa-bars {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 2.5rem;
}

.menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.menu a {
    text-decoration: none;
    font-size: 1.7rem; 
    color: #fff; 
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.menu a::after {
    content: '';
    width: 0; 
    height: 2px; 
    background-color: #fff;
    position: absolute;
    bottom: -5px;   
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.menu a:hover {
    color: var(--background-color);
    transform: translateY(-3px);
}

.menu a:hover::after {
    width: 100%;
    opacity: 1;
}



/* ========================================= */
/* SLIDER PRINCIPAL                          */
/* ========================================= */
.slider-section {
    width: 98%;
    height: 80vh;
    min-height: 550px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    margin: 10px auto;
}

.slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; 
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.1); 
    animation: kenburns 6s infinite alternate ease-in-out;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    align-items: center;
    padding-left: 8%;
}

.slide-content {
    color: white;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color); 
}

.slide-content h2 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-slider {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--primary-color); 
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
}

.btn-slider:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: transparent;
    border-color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* ========================================= */
/* SECCIÓN PROMOCIONES                       */
/* ========================================= */
.promociones {
    padding: 4rem 2rem;
}

.titulo-seccion {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.titulo-seccion::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.contenedor-tarjetas {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; 
}

.tarjeta {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tarjeta:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.tarjeta-imagen {
    background-color: #e1e8ed; 
    height: 200px;
    overflow: hidden; 
}

.tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
}

.tarjeta-contenido {
    padding: 2rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.etiqueta {
    background-color: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    align-self: flex-start; 
    margin-bottom: 1rem;
}

.tarjeta-contenido h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.tarjeta-contenido p {
    color: var(--dark-color); 
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.boton-detalles {
    text-decoration: none;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.boton-detalles:hover {
    background-color: #1a252f; 
}

/* ========================================= */
/* MEJORES DE LA REGIÓN                      */
/* ========================================= */
.excelencia {
    padding: 5rem 2rem; 
    text-align: center;
}

.excelencia-header {
    margin-bottom: 4rem;
}

.excelencia-header h2 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative; 
    padding-bottom: 15px; 
}

.excelencia-header h2:after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
}

.razones-grid {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.razon-item {
    flex: 1;
    min-width: 280px;
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee;
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.razon-item h3 {
    font-size: 2rem; 
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.razon-item p {
    color: var(--dark-color);
    line-height: 1.6;
    font-size: 1.2rem;
}

.razon-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.razon-item:hover .icon-box {
    transform: rotateY(360deg) scale(1.1);
    background-color: #1a252f; 
}

/* ========================================= */
/* SERVICIOS AL INSTANTE                     */
/* ========================================= */
.servicios-express {
    padding: 5rem 2rem;
    text-align: center;
}

.express-grid {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.express-item {
    flex: 1;
    min-width: 280px;
    padding: 2.5rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.express-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.express-item h4 {
    font-size: 2rem; 
    color: var(--primary-color); 
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.express-item p {
    color: var(--dark-color);
    line-height: 1.6;
    font-size: 1.2rem;
}

.express-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary-color);
}

.express-item:hover .express-icon {
    transform: rotateY(360deg) scale(1.1);
    background-color: #1a252f;
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 7rem 0 3rem 0; 
    margin-top: 6rem;
}

.container-footer {
    display: flex;
    flex-direction: column;
    gap: 5rem; 
    padding: 0 2rem;
}

.menu-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.information {
    justify-self: center;
}

.my-account {
    justify-self: end;
}

.title-footer {
    font-weight: 600;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--background-color); 
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.contact-info,
.information,
.my-account {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.information ul,
.my-account ul,
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    color: #ddd;
}

.contact-list i {
    color: var(--background-color);
    font-size: 1.8rem;
    margin-top: 0.2rem;
}

.information ul li a,
.my-account ul li a {
    text-decoration: none;
    color: #ddd;
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
    display: inline-block;
}

.information ul li a:hover,
.my-account ul li a:hover {
    color: #fff;
    transform: translateX(6px); 
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: rgba(255, 255, 255, 0.08); 
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-btn img {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.social-btn:hover img {
    transform: scale(1.1);
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap; 
    gap: 2rem;
}

.copyright p {
    font-weight: 300;
    font-size: 1.4rem;
    color: #bbb;
    margin: 0;
}

.copyright img {
    max-height: 2.5rem;
    width: auto;
    opacity: 0.9;
}

/* ========================================= */
/* BOTÓN WHATSAPP FLOTANTE                   */
/* ========================================= */
.whatsapp-flotante {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 40px; 
    right: 50px; 
    background-color: #32d851;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 3.5rem;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 1000; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-flotante:hover {
    background-color: #118d3e;
    transform: scale(1.1);
}

.whatsapp-flotante i {
    color: #FFF; 
}

/* ========================================= */
/* TÍTULO DE SECCIÓN (SOLO MÓVIL)            */
/* ========================================= */

.mobile-page-title {
    display: none;
}

/* ========================================= */
/* MEDIA QUERIES (SISTEMA RESPONSIVE GLOBAL) */
/* ========================================= */

/* 1. Monitores pequeños, Tablets horizontales y Laptops (Exclusivo entre 769px y 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    html {
        font-size: 58%; 
    }
    .hero {
        padding: 1rem 2rem;
    }
    .menu-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-list li {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
    .information, 
    .my-account {
        justify-self: center;
    }
}



/* 2. Tablets en vertical (hasta 768px) */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    .container-logo {
        padding-left: 0;
        margin: 0 auto; 
    }
    .navbar {
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }
    .navbar .fa-bars {
        display: block; 
    }
   .menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        text-align: center;
        z-index: 100;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden; 
        transform: translateY(-20px);
        padding: 0; 
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0); 
        padding: 2rem 0; 
    }

    .navbar i {
        transition: transform 0.3s ease;
    }
    .menu li {
        margin-bottom: 1.5rem;
    }

    .slider-section {
        height: auto; 
        min-height: auto;
        background-color: #fff; 
    }
    .slider-track {
        align-items: stretch; 
    }
    .slide {
        display: flex;
        flex-direction: column; 
        height: auto;
    }
    .slide img {
        position: relative; 
        height: auto; 
        width: 100%;
        max-height: 300px; 
        object-fit: contain; 
        background-color: #fff; 
        animation: none; 
        transform: none;
        padding: 1rem; 
    }
    .slide-overlay {
        position: relative; 
        height: 100%; 
        background: var(--primary-color); 
        padding: 4rem 2.5rem;
        display: flex;
        align-items: center;
    }
    .slide-content {
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        border-left: none;
        border-top: 3px solid var(--background-color); 
        padding-top: 2.5rem;
        max-width: 100%;
        width: 100%;
    }
    .slide-content h2 { 
        font-size: 2.6rem; 
        text-shadow: none; 
    }
    .slide-content p {
        font-size: 1.4rem;
        opacity: 1;
        margin-bottom: 3rem; 
    }
    
 
    .slide-content .btn-slider {
        background-color: var(--background-color); 
        color: var(--primary-color); 
        display: block;
        width: 100%; 
        text-align: center;
        padding: 1.5rem;
        font-size: 1.6rem;
        border: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    .contenedor-tarjetas, 
    .razones-grid, 
    .express-grid {
        gap: 3rem;
    }
    .menu-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-list li {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
    .information, 
    .my-account {
        justify-self: center;
    }

    .navbar .fa-bars { display: none; }

    .menu-btn {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
        z-index: 101;
    }
    .menu-btn span {
        display: block;
        position: absolute;
        height: 3px; 
        width: 100%;
        background: #fff; 
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out; 
    }
    .menu-btn span:nth-child(1) { top: 0px; }
    .menu-btn span:nth-child(2) { top: 10px; }
    .menu-btn span:nth-child(3) { top: 20px; }
    .menu-btn.open span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
    }
    .menu-btn.open span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    .menu-btn.open span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
    }
     .mobile-page-title {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        color: #ffffff;
        font-size: 1.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

/* 3. Teléfonos Anchos y Horizontales (hasta 576px) */
@media (max-width: 576px) {
    html {
        font-size: 50%;
    }
    .container-logo img {
        width: 180px; 
        height: auto;
    }
    .titulo-seccion, 
    .excelencia-header h2 {
        font-size: 2.2rem;
    }
    .copyright {
        flex-direction: column-reverse; 
        text-align: center;
        justify-content: center;
    }
    .whatsapp-flotante {
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
        font-size: 3rem;
    }
}

/* 4. Teléfonos Delgados (hasta 400px) */
@media (max-width: 400px) {
    .container-logo img {
        width: 150px;
    }
    .slide-content {
        padding: 1.5rem;
    }
    .slide-content h2 {
        font-size: 2rem;
    }
    .tarjeta, 
    .razon-item, 
    .express-item {
        min-width: 100%; 
    }
    .btn-slider {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
    .whatsapp-flotante {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 2.8rem;
    }
}