/* Fondo y tipografía general */
body {
    background: #f8f9fa;
    color: #222;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
    margin: 0;
    padding: 0;
}



/* Contenedor principal */


main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section{
    width: 100%;
    max-width: 800px;
    text-align: left;
}

h1,
h2,
h3 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 2rem !important;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    border-left: 4px solid #CEA3FF;
    padding-left: 0.5rem;
}

p,
li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    list-style: none;
    font-family: 'Montserrat', sans-serif !important;
}

ul,
ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

a {
    color: #028d71 !important;
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #01483f;
}

/* Puedes agregar esto en src/css/politicas.css o en un <style> en el head */

/* Estilos para tablas de políticas */
main table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0 1rem 0;
    background: #fff;
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

main th, main td {
    padding: 0.75rem 1rem;
    text-align: left;
}

main th {
    background: #CEA3FF;
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid #e0e0e0;
}

main tr:nth-child(even) {
    background: #f4f8fb;
}

main tr:nth-child(odd) {
    background: #fff;
}

main td {
    border-bottom: 1px solid #e0e0e0;
}

main tr:last-child td {
    border-bottom: none;
}


/* Responsive */
@media (max-width: 970px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 0rem !important;}

    h2 {
        font-size: 1rem !important;
        margin-bottom: 0rem !important;
    }

    body{
        padding-top: 3rem !important;
    }

    main{
        gap: 1rem !important;
    }
    section{
    width: 100%;
    max-width: 400px;
    text-align: left;
    padding: 6rem !important;
    }

    p,
    li {
    font-size: 0.8rem !important;
    line-height: 1.7;
    margin-bottom: 0rem;
    list-style: none;
    padding: 1rem;
    }

    li {
    font-size: 0.7rem !important;
    line-height: 1rem;
    margin-bottom: 0rem;
    list-style: none;
    padding: 0.6rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif !important;
    }

    .cookie-table{
        padding: 4rem;
    }
    main table, main thead, main tbody, main th, main td, main tr {
        display: block;
        width: 100%;
    }
    main thead {
        display: none;
    }
    main tr {
        margin-bottom: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        background: #fff;
        padding: 0.5rem 0;
    }
    main td {
        border: none;
        position: relative;
        padding-left: 50%;
        min-height: 2.2rem;
    }
    main td:before {
        position: absolute;
        top: 0.75rem;
        left: 1rem;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        color: #00b894;
        content: attr(data-label);
    }

}
