/* ======================= FUENTE MODERNA (Google Fonts) ======================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ======================= VARIABLES Y ESTILOS GLOBALES ======================= */
:root {
    --golden-tone-yellow: #E2C040;
    --dark-blue: #041c38;
    --dark-blue-light: #06254e;
    --golden-yellow: #efdaa0;
    --slate-gray: #5a7385;
    --soft-blue: #ceeaff89;
    --teal: #1b84a9;
    --white: #ffffff;
    --soft-white: #f0f2f5;
    --text-color: #333;
    --vp-green: #61a756;
    --header-height: 80px;
    --radius: 15px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--soft-white);
    color: var(--text-color);
    line-height: 1.7;
}

/* ======================= CLASES DE UTILIDAD ======================= */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-title h2 {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.section-title p {
    font-size: 1.1rem;
    color: #555;
}

/* ======================= HEADER ======================= */
.header {
    background-color: var(--dark-blue);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0));
}

.navbar {
    display: none;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--golden-tone-yellow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.cart-icon {
    position: relative;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
}

.cart-counter {
    position: absolute;
    top: -10px;
    right: -12px;
    background-color: var(--golden-tone-yellow);
    color: var(--dark-blue);
    border-radius: 50%;
    padding: 0.15rem 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--dark-blue);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--dark-blue);
    position: sticky;
    top: var(--header-height);
    left: 0;
    width: 100%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    opacity: 0;
    transform: translateY(-15px);
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background-color: var(--dark-blue-light);
}

body.mobile-menu-open .mobile-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* ======================= SECCIÓN HERO ======================= */
.hero {
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
    color: var(--white);
    padding: 6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ======================= BOTONES ======================= */
.btn {
    padding: 1rem 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    border-color: var(--golden-tone-yellow);
    background-color: var(--golden-tone-yellow);
    color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(239, 218, 160, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 218, 160, 0.6);
}

/* ======================= CTA CONTAINER ======================= */
.cta-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 3rem 1.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    color: var(--dark-blue);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 5px solid var(--dark-blue-light);
    box-shadow: 0 24px 60px rgba(4, 41, 120, 0.12);
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(4, 41, 120, 0.12);
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    flex-grow: 1;
}

.cta-card .btn {
    border-color: var(--golden-tone-yellow);
    background-color: var(--golden-tone-yellow);
    color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(239, 218, 160, 0.856);
}

.cta-card .btn:hover {
    background-color: var(--golden-tone-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 218, 160, 0.933);
}

/*------------------C2A SERVICES--------------------*/
.cta-card.services-cta {
    border-top-color: var(--golden-tone-yellow);
}

.cta-card.services-cta h2 {
    color: var(--dark-blue);
}

.cta-card.services-cta p {
    color: var(--text-color);
}

.cta-card.services-cta .btn {
    background-color: var(--dark-blue-light);
    color: var(--soft-white);
    border-color: var(--golden-yellow);
    box-shadow: 0 4px 12px rgba(30, 24, 207, 0.4);
}

.cta-card.services-cta .btn:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 6px 15px rgba(39, 47, 196, 0.8);
}

/*======================footer=======================*/

.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding-top: 5rem;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-column {
    flex: 1;
    min-width: 280px;
}

.footer-column.about {
    flex-basis: 40%;
    /* Le da un poco más de espacio a la primera columna */
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 350px;
    line-height: 1.8;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--golden-yellow);
}

.footer-column h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white);
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-list i {
    font-size: 1.2rem;
    color: var(--golden-tone-yellow);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: var(--dark-blue);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(6, 3, 40, 0.1);
}

/* Ajuste para móvil en el footer */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    .footer-column p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-list li {
        justify-content: center;
        text-align: left;
    }
}

/* ======================= PÁGINA DE CATÁLOGO ======================= */
.catalog-header {
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    background-color: var(--golden-tone-yellow);
    border: 1px var(--golden-tone-yellow);
    color: var(--dark-blue);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background-color: var(--golden-tone-yellow);
    border-color: var(--golden-tone-yellow);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--golden-tone-yellow);
    color: var(--dark-blue);
    border-color: var(--golden-yellow);
    box-shadow: 0 5px 15px rgba(226, 191, 64, 0.885);
    transform: translateY(-2px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 0 1.5rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgb(2, 13, 61);
}
.product-short-desc {
    font-size: 0.9rem;
    color: var(--slate-gray);
    margin-bottom: 1.5rem;
    min-height: 40px; /* Le da una altura mínima para alinear los botones */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 15px rgb(1, 13, 61);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card .product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.product-card .btn-primary {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;

}

/* =================================================================== */
/* MEDIA QUERIES EXCLUSIVAS PARA EL CATÁLOGO (VERSIÓN FINAL) */
/* =================================================================== */

@media (max-width: 768px) {

    /* Se aplica el grid de 2 columnas */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1rem 4rem;
    }

    /* Ajustes para la tarjeta compacta */
    .product-card .product-image {
        height: 100%;
    }

    .product-card .product-info {
        padding: 0.8rem;
    }

    .product-card .product-name {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .product-card .btn-primary {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}


/* ======================= PÁGINA DEL CARRITO ======================= */
.cart-page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

.cart-items-list {
    flex: 2;
    min-width: 300px;
}

.cart-summary {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.cart-summary h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.summary-row span:last-child {
    font-weight: 600;
}

.btn-full-width {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-full-width i {
    margin-right: 0.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.cart-item-image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.quantity-adjuster {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.quantity-btn {
    background-color: var(--soft-white);
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--slate-gray);
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: var(--slate-gray);
    color: var(--white);
}

.quantity-display {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--slate-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    margin-left: 1rem;
}

.remove-btn:hover {
    color: #e74c3c;
}

.empty-cart-message {
    width: 100%;
    text-align: center;
    padding: 4rem 2rem;
}

/* =================================================================== */
/* ESTILOS PARA EL SLIDER DE SERVICIOS (VERSIÓN FINAL CON SLIDER-INNER) */
/* =================================================================== */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-viewport:active {
    cursor: grabbing;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
}

/* NUEVO: colchón interno para sombras */
.slider-inner {
    padding: 25px 15px 35px;   /* aire arriba, laterales e inferior */
    box-sizing: border-box;
}

.slider-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px; /* Espaciado fijo entre tarjetas */
}

.service-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
    padding: 2rem 1.5rem;
    height: 280px;
    background-color: var(--white);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #f0f0f0;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(2, 13, 61, 0.08);
    transition: var(--transition);
}

.service-item:hover i,
.service-item:active i {
    color: var(--golden-tone-yellow);
    transform: translateY(-5px);
    transition: var(--transition);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--dark-blue);
}

.service-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    line-height: 1.4;
    flex-grow: 1; /* ✨ CLAVE: Esta línea hace que el título ocupe todo el espacio sobrante */
    /* Centra el texto verticalmente dentro de su espacio flexible */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .btn {
    width: 90%;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    transition: all 0.3s ease-in-out;
}

.dot.active {
    background-color: var(--dark-blue);
    width: 15px;
    height: 15px;
}

.cta-button-container {
    text-align: center;
    margin-top: 3rem;
}

/* --- Tamaños de las tarjetas por dispositivo --- */

/* Escritorio grande: 5 tarjetas */
@media (min-width: 1201px) {
    .service-item {
        flex-basis: calc((100% - (20px * 4)) / 5);
    }
}

/* Escritorio pequeño: 4 tarjetas */
@media (max-width: 1200px) and (min-width: 993px) {
    .service-item {
        flex-basis: calc((100% - (20px * 3)) / 4);
    }
}

/* Tablet: 2 tarjetas */
@media (max-width: 992px) and (min-width: 577px) {
    .service-item {
        flex-basis: calc((100% - 20px) / 2);
    }
}

/* Móvil: 1 tarjeta */
@media (max-width: 576px) {
    .service-item {
        flex-basis: 100%;
        height: auto;
    }
}




/* =================================================================== */
/* MEDIA QUERIES PARA RESPONSIVIDAD */
/* =================================================================== */

/* Estilos para Escritorio (más de 768px) */
@media (min-width: 769px) {

    .menu-toggle,
    .mobile-menu {
        display: none;
    }

    .navbar {
        display: flex;
        gap: 2.5rem;
    }
}

/* Estilos para Tablets y Móviles (menos de 768px) */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .hero {
        min-height: auto;
        padding: 4rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .cta-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .cta-card {
        width: 100%;
        max-width: 400px;
    }

    .cta-card h2 {
        font-size: 1.8rem;
    }

    .cart-summary {
        position: static;
        width: 100%;
        order: -1;
        margin-bottom: 2rem;
    }

    .cart-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "image info remove" "image controls controls";
        gap: 1rem;
        align-items: center;
    }

    .cart-item-image {
        grid-area: image;
    }

    .cart-item-info {
        grid-area: info;
        align-self: center;
    }

    .quantity-adjuster {
        grid-area: controls;
    }

    .remove-btn {
        grid-area: remove;
    }

    .patron-borroso::before {
        background-size: 250px;
    }

    /* ======================= AJUSTES DEL FOOTER PARA MÓVILES ======================= */
    @media (max-width: 768px) {
        .footer {
            padding-top: 3rem;
        }

        .footer-main {
            /* Apila y centra los bloques (logo y lista de íconos) */
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            padding-bottom: 2rem;
        }

        /* Oculta los elementos de texto que no se necesitan en móvil */
        .footer-column.about p,
        .footer-column.contact h3,
        .contact-list span {
            /* Oculta el texto dentro de los enlaces */
            display: none;
        }

        .footer-logo {
            height: 50px;
            margin: 0;
        }

        .contact-list {

            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            list-style: none;
            padding: 0;
        }

        .contact-list li {
            margin: 0;
        }

        .contact-list a {
            color: var(--white);
            font-size: 1.8rem;
            /* Tamaño de los íconos */
            transition: var(--transition);
        }

        .contact-list a:hover {
            color: var(--golden-tone-yellow);
            transform: scale(1.1);
        }
    }

    /* --- Fin de los elementos ocultos --- */

    .footer-column {
        /* Resetea la base del flex para que los elementos se ajusten a su contenido */
        flex-basis: auto;
    }

    .footer-logo {
        height: 45px;
        /* Un tamaño más adecuado para la fila de íconos */
        margin: 0;
    }

    .contact-list {
        /* Convierte la lista de contactos en una fila de íconos */
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .contact-list li {
        margin-bottom: 0;
        /* Elimina el margen vertical */
    }

    .contact-list a i {
        font-size: 1.6rem;
        /* Asegura que los íconos tengan buen tamaño */
        margin: 0;
    }

    .social-links {
        margin: 0;
        font-size: 1.6rem;
    }
}

/* Ajustes Adicionales para Móviles Pequeños (menos de 420px) */
@media (max-width: 420px) {

    .container,
    .hero,
    .footer-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
}