/* ==========================================================
   POLÍTICA DE COOKIES
   RJL SERVICIOS
========================================================== */


/* ==========================================================
   CONFIGURACIÓN GENERAL DE LA PÁGINA
========================================================== */

.cookies-contenido,
.cookies-contenido * {

    box-sizing: border-box;

}


.cookies-contenido {

    width: 90%;

    max-width: 1180px;

    margin: 0 auto;

    padding: 70px 0 90px;

    color: #333333;

}



/* ==========================================================
   HERO / CABECERA DE LA PÁGINA
========================================================== */

.cookies-hero {

    width: 100%;

    min-height: 330px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            110deg,
            rgba(25, 25, 25, 0.96),
            rgba(55, 25, 25, 0.90)
        );

    border-bottom: 6px solid #c62828;

}


.cookies-hero-contenido {

    width: 90%;

    max-width: 1180px;

    margin: 0 auto;

    padding: 60px 0;

}


.cookies-etiqueta {

    display: inline-block;

    margin-bottom: 18px;

    padding: 8px 18px;

    background: rgba(198, 40, 40, 0.18);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 30px;

    color: #ffffff;

    font-size: 0.9rem;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.cookies-hero h1 {

    margin: 0 0 20px;

    color: #ffffff;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1.05;

    font-weight: 800;

}


.cookies-hero p {

    max-width: 700px;

    margin: 0;

    color: rgba(255, 255, 255, 0.85);

    font-size: 1.15rem;

    line-height: 1.7;

}



/* ==========================================================
   SECCIONES GENERALES
========================================================== */

.cookies-seccion {

    margin-bottom: 65px;

}


.cookies-seccion h2,
.cookies-responsable h2,
.cookies-configuracion h2 {

    position: relative;

    margin: 0 0 28px;

    padding-bottom: 16px;

    color: #2a1e17;

    font-size: 2rem;

    line-height: 1.25;

    font-weight: 700;

}


.cookies-seccion h2::after,
.cookies-responsable h2::after,
.cookies-configuracion h2::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 65px;

    height: 4px;

    background: #c62828;

    border-radius: 10px;

}


.cookies-seccion p,
.cookies-responsable p,
.cookies-configuracion p {

    margin: 0 0 18px;

    color: #555555;

    font-size: 1rem;

    line-height: 1.85;

}



/* ==========================================================
   TARJETAS DE TIPOS DE COOKIES
========================================================== */

.cookie-tipo {

    display: flex;

    align-items: flex-start;

    gap: 24px;

    margin-bottom: 22px;

    padding: 28px 30px;

    background: #ffffff;

    border: 1px solid #e8e8e8;

    border-left: 5px solid #c62828;

    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.cookie-tipo:hover {

    transform: translateY(-4px);

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.10);

}


.cookie-icono {

    width: 58px;

    min-width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(198, 40, 40, 0.10);

    border-radius: 12px;

    color: #c62828;

    font-size: 1.45rem;

}


.cookie-info {

    flex: 1;

}


.cookie-info h3 {

    margin: 0 0 10px;

    color: #2a1e17;

    font-size: 1.3rem;

    font-weight: 700;

}


.cookie-info p {

    margin: 0;

}



/* ==========================================================
   CAJAS DOBLES
   PROPIEDAD Y CONSERVACIÓN
========================================================== */

.cookies-doble {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

}


.cookie-caja {

    padding: 32px;

    background: #f8f8f8;

    border-top: 5px solid #c62828;

    border-radius: 12px;

}


.cookie-caja h3 {

    margin: 0 0 15px;

    color: #2a1e17;

    font-size: 1.35rem;

    font-weight: 700;

}


.cookie-caja p {

    margin: 0;

}



/* ==========================================================
   TRATAMIENTO DE DATOS
========================================================== */

.cookies-destacada {

    display: flex;

    align-items: flex-start;

    gap: 30px;

    padding: 42px;

    background: #2a1e17;

    border-radius: 16px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);

}


.cookies-destacada-icono {

    width: 75px;

    min-width: 75px;

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #c62828;

    border-radius: 50%;

    color: #ffffff;

    font-size: 1.8rem;

}


.cookies-destacada h2 {

    color: #ffffff;

}


.cookies-destacada h2::after {

    background: #c62828;

}


.cookies-destacada p {

    color: rgba(255, 255, 255, 0.82);

}



/* ==========================================================
   ESTADO DE LAS COOKIES UTILIZADAS
========================================================== */

.cookies-estado {

    display: flex;

    align-items: flex-start;

    gap: 20px;

    margin-bottom: 20px;

    padding: 28px 30px;

    background: #f7f7f7;

    border-radius: 12px;

}


.cookies-estado > i {

    margin-top: 3px;

    color: #2e7d32;

    font-size: 1.7rem;

}


.cookies-estado h3 {

    margin: 0 0 8px;

    color: #2a1e17;

    font-size: 1.25rem;

}


.cookies-estado p {

    margin: 0;

}



/* ==========================================================
   PANEL DE CONFIGURACIÓN DE COOKIES
========================================================== */

.cookies-configuracion {

    display: flex;

    align-items: center;

    gap: 32px;

    margin-bottom: 65px;

    padding: 42px;

    background: #f3f3f3;

    border: 1px solid #e0e0e0;

    border-radius: 16px;

}


.cookies-configuracion-icono {

    width: 80px;

    min-width: 80px;

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #c62828;

    border-radius: 15px;

    color: #ffffff;

    font-size: 2rem;

}


.cookies-boton {

    display: inline-block;

    margin-top: 10px;

    padding: 14px 28px;

    background: #c62828;

    border-radius: 7px;

    color: #ffffff;

    font-size: 0.95rem;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.3s ease;

}


.cookies-boton:hover {

    background: #a91f1f;

    color: #ffffff;

    transform: translateY(-2px);

}



/* ==========================================================
   GESTIÓN DE COOKIES DESDE EL NAVEGADOR
========================================================== */

.cookie-gestion {

    margin-bottom: 18px;

    padding: 25px 28px;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 10px;

}


.cookie-gestion h3 {

    margin: 0 0 10px;

    color: #2a1e17;

    font-size: 1.2rem;

    font-weight: 700;

}


.cookie-gestion p {

    margin: 0;

}



/* ==========================================================
   RESPONSABLE
========================================================== */

.cookies-responsable {

    padding: 42px;

    background: #f7f7f7;

    border-left: 6px solid #c62828;

    border-radius: 12px;

}


.cookies-responsable strong {

    color: #2a1e17;

}



/* ==========================================================
   EVITAR DESBORDAMIENTO HORIZONTAL
========================================================== */

.cookies-hero,
.cookies-contenido {
    max-width: 100%;
    overflow-x: clip;
}

/* ==========================================================
   RESPONSIVE
   TABLETS
========================================================== */

@media (max-width: 900px) {

    .cookies-hero {

        min-height: 290px;

    }


    .cookies-contenido {

        width: 92%;

        padding: 55px 0 70px;

    }


    .cookies-doble {

        grid-template-columns: 1fr;

    }


    .cookies-destacada,
    .cookies-configuracion {

        align-items: flex-start;

    }

}



/* ==========================================================
   RESPONSIVE
   MÓVILES
========================================================== */

@media (max-width: 650px) {

    .cookies-hero {

        min-height: 260px;

    }


    .cookies-hero-contenido {

        width: 90%;

        padding: 45px 0;

    }


    .cookies-hero h1 {

        font-size: 2.4rem;

    }


    .cookies-hero p {

        font-size: 1rem;

    }


    .cookies-contenido {

        width: 90%;

        padding: 45px 0 60px;

    }


    .cookies-seccion {

        margin-bottom: 48px;

    }


    .cookies-seccion h2,
    .cookies-responsable h2,
    .cookies-configuracion h2 {

        font-size: 1.55rem;

    }


    .cookie-tipo {

        flex-direction: column;

        gap: 18px;

        padding: 24px;

    }


    .cookie-icono {

        width: 52px;

        min-width: 52px;

        height: 52px;

    }


    .cookie-caja {

        padding: 25px;

    }


    .cookies-destacada {

        flex-direction: column;

        padding: 30px 25px;

    }


    .cookies-destacada-icono {

        width: 65px;

        min-width: 65px;

        height: 65px;

    }


    .cookies-configuracion {

        flex-direction: column;

        padding: 30px 25px;

    }


    .cookies-configuracion-icono {

        width: 65px;

        min-width: 65px;

        height: 65px;

    }


    .cookies-responsable {

        padding: 30px 25px;

    }

}

/* ==================================================
   AJUSTES DE ACCESIBILIDAD - COOKIES
================================================== */

.cookies-contenido a:focus-visible,
.cookies-boton:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.30);
    outline-offset: 3px;
    border-radius: 4px;
}

.cookies-seccion p,
.cookies-responsable p,
.cookies-configuracion p,
.cookie-info p,
.cookie-caja p {
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .cookie-tipo,
    .cookies-boton {
        transition: none !important;
    }

    .cookie-tipo:hover,
    .cookies-boton:hover {
        transform: none !important;
    }
}
