/* ==========================================================================
       0. TIPOGRAFÍA GLOBAL Y NORMAS DE DISEÑO
       ========================================================================== */
    body, h1, h2, h3, h4, h5, h6, p, span, a, li, button, input, label {
        font-family: 'Noto Serif', serif;
    }

    /* ==========================================================================
       1. ESTILOS BASE DE TU PÁGINA (Botones y Efectos)
       ========================================================================== */
    .botones {
        background: linear-gradient(45deg, #B47A1A, #FFE55A, #001E62);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        transition: all 0.4s ease-in-out;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

    .botones:hover {
        background: linear-gradient(135deg, #B47A1A, #FFE55A, #B47A1A);
        color: #000000;
        box-shadow: 0 6px 20px rgba(0, 30, 98, 0.4);
        transform: translateY(-3px);
    }

    /* ==========================================================================
       5. ESTILOS DE ¿POR QUÉ CONFIAR EN NOSOTROS?
       ========================================================================== */
    #confiar.confianza-nueva {
        padding: 100px 0 50px 0 !important; /* Espaciado corregido de alta especificidad */
        background: #ffffff;
    }

    .titulo-confianza {
        color: #000000 !important;
        text-transform: uppercase;
        font-size: 2.3rem;
        font-weight: bold;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .linea-confianza {
        width: 80px;
        height: 4px;
        background: #B47A1A;
        margin: 0 auto 45px auto;
        border-radius: 20px;
    }

    .confianza-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .confianza-card {
        background: #001E62 !important;
        color: white !important;
        border-radius: 12px;
        min-height: 210px;
        padding: 30px 22px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0,30,98,0.15);
        cursor: pointer;
        will-change: transform, opacity;
        border: 2px solid transparent !important;
        transition:
            opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.78s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.78s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .confianza-card.confianza-hidden {
        opacity: 0 !important;
        transform: translateY(60px) scale(0.94) !important;
    }

    .confianza-card.confianza-visible {
        opacity: 1 !important;
        animation: entradaConfianzaUltraSuave 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    @keyframes entradaConfianzaUltraSuave {
        from {
            opacity: 0;
            transform: translateY(60px) scale(0.94);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .confianza-card.confianza-visible:nth-child(1) { animation-delay: 0.15s !important; }
    .confianza-card.confianza-visible:nth-child(2) { animation-delay: 0.38s !important; }
    .confianza-card.confianza-visible:nth-child(3) { animation-delay: 0.61s !important; }
    .confianza-card.confianza-visible:nth-child(4) { animation-delay: 0.84s !important; }

    .confianza-card.confianza-visible:hover {
        background: #001E62 !important;
        transform: translateY(-6px) scale(1.03) !important;
        box-shadow: 0 16px 32px rgba(0,30,98,0.24) !important;
    }

    .confianza-card i {
        color: white !important;
        font-size: 32px;
        margin-bottom: 18px;
        transition:
            color 0.78s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.78s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .confianza-card:hover i {
        color: #FFE55A !important; /* Amarillo Pantone 601C */
        transform: scale(1.15) rotate(4deg) !important;
    }

    .confianza-card h4,
    .confianza-card p {
        color: white !important;
    }

    .confianza-card h4 {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 12px;
    }

    .confianza-card p {
        font-size: 15px;
        line-height: 1.5;
        margin: 0;
    }

    @media(max-width:992px) {
        .confianza-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media(max-width:768px) {
        .confianza-nueva {
            padding: 120px 0 50px 0;
        }
        .confianza-grid {
            grid-template-columns: 1fr;
        }
        .titulo-confianza {
            font-size: 1.8rem;
        }
        .confianza-card {
            min-height: 180px;
        }
        .confianza-card.confianza-hidden {
            opacity: 0 !important;
            transform: translateY(35px) scale(0.97) !important;
        }
        .confianza-card.confianza-visible {
            animation: entradaConfianzaMasSuaveMovil 1s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
        }
        @keyframes entradaConfianzaMasSuaveMovil {
            from {
                opacity: 0;
                transform: translateY(35px) scale(0.97);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        .confianza-card.confianza-visible:nth-child(1) { animation-delay: 0.08s !important; }
        .confianza-card.confianza-visible:nth-child(2) { animation-delay: 0.18s !important; }
        .confianza-card.confianza-visible:nth-child(3) { animation-delay: 0.28s !important; }
        .confianza-card.confianza-visible:nth-child(4) { animation-delay: 0.38s !important; }
    }

    /* ==========================================================================
       6. ESTILOS DE MISIÓN Y VISIÓN (Diseño Moderno)
       ========================================================================== */
    .mision-vision-section {
        padding: 80px 0;
        background: #fcfcfc;
    }
    .mision-vision-card {
        background: linear-gradient(135deg, #001E62, #00368a);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        padding: 45px 35px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        height: 100%;
        position: relative;
        overflow: hidden;
    }
    .mision-vision-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #FFE55A, #B47A1A);
        transition: all 0.4s ease;
    }
    .mision-vision-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(180, 122, 26, 0.25);
        border-color: rgba(180, 122, 26, 0.3);
    }
    .mision-vision-card:hover::before {
        height: 6px;
    }
    .mision-vision-icon {
        width: 70px;
        height: 70px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px auto;
        transition: all 0.4s ease;
    }
    .mision-vision-icon i {
        font-size: 30px;
        color: #FFE55A;
        transition: all 0.4s ease;
    }
    .mision-vision-card:hover .mision-vision-icon {
        background: #B47A1A;
    }
    .mision-vision-card:hover .mision-vision-icon i {
        color: #ffffff;
        transform: scale(1.1);
    }
    .mision-vision-title {
        font-size: 1.8rem;
        font-weight: bold;
        color: #ffffff;
        margin-bottom: 16px;
    }
    .mision-vision-text {
        font-size: 1.1rem;
        color: #e0e0e0;
        line-height: 1.7;
        margin: 0;
    }

    /* ==========================================================================
       7. ESTILOS DE NUESTROS VALORES (Diseño Premium Responsive)
       ========================================================================== */
    .valores-section {
        padding: 80px 0;
        background: #ffffff;
    }
    .titulo-valores-new {
        color: #000000 !important;
        text-transform: uppercase;
        font-size: 2.5rem;
        font-weight: bold;
        text-align: center;
        margin-bottom: 15px;
    }
    .linea-valores {
        width: 80px;
        height: 4px;
        background: #B47A1A;
        margin: 0 auto 45px auto;
        border-radius: 20px;
    }
    .valores-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    .valor-card-new {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 18px;
        padding: 24px 16px;
        transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 180px;
        cursor: pointer;
    }
    .valor-card-new::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3.5px;
        background: #B47A1A;
        transform: scaleX(0);
        transition: transform 0.35s ease;
    }
    .valor-card-new:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 30, 98, 0.06);
        border-color: rgba(0, 30, 98, 0.1);
    }
    .valor-card-new:hover::after {
        transform: scaleX(1);
    }
    .valor-card-new i {
        font-size: 2.2rem;
        color: #001E62;
        margin-bottom: 12px;
        transition: transform 0.35s ease;
    }
    .valor-card-new:hover i {
        transform: scale(1.15);
        color: #B47A1A;
    }
    .valor-card-new h4 {
        font-size: 1.15rem;
        font-weight: bold;
        color: #111;
        margin: 0;
        transition: margin 0.35s ease;
    }
    .valor-card-new p {
        font-size: 0.88rem;
        color: #666;
        line-height: 1.4;
        margin: 0;
        opacity: 0;
        max-height: 0;
        transform: translateY(10px);
        transition: all 0.35s ease;
        text-align: center;
    }
    .valor-card-new:hover p {
        opacity: 1;
        max-height: 100px;
        transform: translateY(0);
        margin-top: 8px;
    }
    @media (max-width: 768px) {
        .valores-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        .valor-card-new {
            min-height: 160px;
            padding: 16px 10px;
        }
        .valor-card-new i {
            font-size: 1.8rem;
        }
        .valor-card-new h4 {
            font-size: 1rem;
        }
        .valor-card-new p {
            font-size: 0.8rem;
        }
    }

    /* ==========================================================================
       8. ESTILOS DE EMPRESAS COLABORADORAS (Carrusel Infinito Lado a Lado)
       ========================================================================== */
    .marcas-seccion {
        padding: 60px 0;
        background: #ffffff;
    }
    .titulo-empresas {
        background: none !important;
        -webkit-text-fill-color: #000000 !important;
        color: #000000 !important;
        font-family: 'Noto Serif', serif !important;
        text-transform: uppercase;
    }
    .marcas-container {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 20px 0;
        background: #ffffff;
    }
    .marcas-container::before, .marcas-container::after {
        content: "";
        position: absolute;
        top: 0;
        width: 100px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }
    .marcas-container::before {
        left: 0;
        background: linear-gradient(90deg, #ffffff, transparent);
    }
    .marcas-container::after {
        right: 0;
        background: linear-gradient(-90deg, #ffffff, transparent);
    }
    .marcas {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        animation: moveCarousel 25s linear infinite;
    }
    .marcas img {
        height: 55px;
        width: auto;
        max-width: 130px;
        margin: 0 40px;
        object-fit: contain;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }
    .marcas img:hover {
        transform: scale(1.05);
    }
    @keyframes moveCarousel {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    /* ==========================================================================
       9. ESTILOS DE FOOTER MODERNO Y WHATSAPP FLOTANTE
       ========================================================================== */
    .footer-moderno {
        background: #2f363b;
        color: white;
        padding: 55px 0 20px 0;
    }

    .footer-contenido {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 45px;
        align-items: start;
    }

    .footer-columna h4 {
        font-size: 1.25rem;
        font-weight: bold;
        text-transform: uppercase;
        margin-bottom: 18px;
        color: #ffffff;
        letter-spacing: 1px;
        position: relative;
    }

    .footer-columna h4::after {
        content: "";
        display: block;
        width: 45px;
        height: 3px;
        background: #B47A1A;
        border-radius: 20px;
        margin-top: 10px;
    }

    .footer-texto {
        color: #d9d9d9;
        line-height: 1.7;
        font-size: 0.98rem;
        margin-bottom: 20px;
    }

    .footer-redes {
        display: flex;
        gap: 16px;
        align-items: center;
    }

    .footer-redes a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        text-decoration: none;
        transition: 0.3s ease;
    }

    .footer-redes a:hover {
        background: #B47A1A;
        color: white;
        transform: translateY(-5px) scale(1.08);
        text-decoration: none;
    }

    .footer-contacto {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-contacto li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        color: #e6e6e6;
        line-height: 1.5;
    }

    .footer-contacto i {
        color: #B47A1A;
        font-size: 18px;
        margin-top: 3px;
        min-width: 20px;
    }

    .footer-contacto a {
        color: #e6e6e6;
        text-decoration: none;
        word-break: break-word;
        transition: 0.3s ease;
    }

    .footer-contacto a:hover {
        color: #FFE55A; /* Amarillo Pantone 601C */
        text-decoration: none;
    }

    .footer-garantia {
        text-align: left;
    }

    .footer-logo-garantia {
        width: 135px;
        max-width: 100%;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
        transition: 0.3s ease;
    }

    .footer-logo-garantia:hover {
        transform: scale(1.06);
    }

    .footer-linea {
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.12);
        margin: 35px 0 18px 0;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-copy p {
        margin: 0;
        color: #d9d9d9;
        font-size: 0.95rem;
    }

    @media(max-width:992px) {
        .footer-contenido {
            grid-template-columns: 1fr 1fr;
            gap: 35px;
        }

        .footer-garantia {
            grid-column: 1 / -1;
        }
    }

    @media(max-width:768px) {
        .footer-moderno {
            padding: 40px 0 85px 0;
            text-align: center;
        }

        .footer-contenido {
            grid-template-columns: 1fr;
            gap: 35px;
        }

        .footer-columna h4::after {
            margin: 10px auto 0 auto;
        }

        .footer-redes {
            justify-content: center;
        }

        .footer-contacto li {
            justify-content: center;
            text-align: center;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .footer-garantia {
            text-align: center;
        }

        .footer-logo-garantia {
            width: 115px;
        }

        .footer-copy p {
            font-size: 0.9rem;
            line-height: 1.5;
            padding: 0 10px;
        }
    }

    @media(min-width:993px) {
        .footer-contenido {
            grid-template-columns: 1fr 1.45fr 1fr !important;
            gap: 55px !important;
        }

        .footer-contacto a[href^="mailto"] {
            white-space: nowrap !important;
            font-size: 0.95rem !important;
        }

        .footer-contacto li {
            align-items: center !important;
        }
    }

    @media(max-width:992px) {
        .footer-contacto a[href^="mailto"] {
            white-space: normal !important;
            overflow-wrap: anywhere !important;
            word-break: break-word !important;
        }
    }

    .footer-contacto li {
        font-size: 1rem;
    }

    .footer-contacto span,
    .footer-contacto a {
        line-height: 1.5;
    }

    /* Botón flotante de WhatsApp */
    .whatsapp-flotante {
        position: fixed;
        right: 25px;
        bottom: 25px;
        background: #25d366;
        color: white !important;
        height: 58px;
        padding: 0 24px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 17px;
        font-weight: bold;
        text-decoration: none !important;
        box-shadow: 0 8px 22px rgba(0,0,0,0.28);
        z-index: 9999;
        transition: all 0.35s ease;
    }

    .whatsapp-flotante i {
        font-size: 28px;
        transition: 0.35s ease;
    }

    .whatsapp-flotante:hover {
        background: #1ebe5d;
        color: white !important;
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 12px 28px rgba(0,0,0,0.32);
    }

    .whatsapp-flotante:hover i {
        transform: rotate(8deg) scale(1.12);
    }

    @media(max-width:768px) {
        .whatsapp-flotante {
            width: 58px;
            height: 58px;
            padding: 0;
            right: 18px;
            bottom: 18px;
            border-radius: 50%;
        }

        .whatsapp-flotante span {
            display: none;
        }

        .whatsapp-flotante i {
            font-size: 30px;
        }
    }