/* =======================
   TÉRMINOS LEGALES - ESTILOS ESPECÍFICOS
   Mobile-First Approach
   ======================= */

/* =======================
   DIV-2: TÉRMINOS Y CONDICIONES
   ======================= */
#div-2 {
    width: 100%;
    min-height: 600px;
    background-color: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 60px;
    box-sizing: border-box;
}

#div-2 .content {
    width: 100%;
    max-width: 1200px;
}

.terminos-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.terminos-title {
    font-family: 'poiret_oneregular', Arial, sans-serif;
    font-size: calc(2rem + 1.5vw);
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

.terminos-intro {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(1rem + 0.25vw);
    line-height: 1.8;
    color: #333333;
    margin-bottom: 40px;
    text-align: justify;
}

.terminos-section {
    margin-bottom: 35px;
}

.terminos-section-title {
    font-family: 'poiret_oneregular', Arial, sans-serif;
    font-size: calc(1.5rem + 0.5vw);
    font-weight: 600;
    color: #B87333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #B87333;
}

.terminos-section-text {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(0.95rem + 0.15vw);
    line-height: 1.8;
    color: #555555;
    margin-bottom: 15px;
    text-align: justify;
}

.terminos-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.terminos-list li {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(0.95rem + 0.15vw);
    line-height: 1.8;
    color: #555555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.terminos-list li::before {
    content: "•";
    color: #B87333;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

.terminos-list li strong {
    color: #1B4D3E;
    font-weight: 600;
}

.terminos-nested-list {
    list-style: none;
    padding-left: 25px;
    margin-top: 10px;
}

.terminos-nested-list li {
    padding-left: 20px;
}

.terminos-nested-list li::before {
    content: "▪";
    color: #B87333;
}

.terminos-highlight {
    background-color: #FAF3E0;
    padding: 20px;
    border-left: 4px solid #B87333;
    margin: 20px 0;
    border-radius: 4px;
}

.terminos-highlight p {
    margin: 0;
    font-weight: 500;
    color: #1B4D3E;
}

.terminos-date {
    text-align: center;
    font-size: 0.9rem;
    color: #888888;
    margin-top: 40px;
    font-style: italic;
}

/* =======================
   DIV-3: POLÍTICA DE PRIVACIDAD
   ======================= */
#div-3 {
    width: 100%;
    min-height: 600px;
    background-color: #FAF3E0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 60px;
    box-sizing: border-box;
}

#div-3 .content {
    width: 100%;
    max-width: 1200px;
}

.privacidad-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.privacidad-title {
    font-family: 'poiret_oneregular', Arial, sans-serif;
    font-size: calc(2rem + 1.5vw);
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.privacidad-ley {
    text-align: center;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(0.9rem + 0.15vw);
    color: #B87333;
    margin-bottom: 30px;
    font-weight: 600;
    padding: 15px;
    background-color: #FAF3E0;
    border-radius: 4px;
}

.privacidad-intro {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(1rem + 0.25vw);
    line-height: 1.8;
    color: #333333;
    margin-bottom: 40px;
    text-align: justify;
}

.privacidad-section {
    margin-bottom: 35px;
}

.privacidad-section-title {
    font-family: 'poiret_oneregular', Arial, sans-serif;
    font-size: calc(1.5rem + 0.5vw);
    font-weight: 600;
    color: #B87333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #B87333;
}

.privacidad-section-text {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(0.95rem + 0.15vw);
    line-height: 1.8;
    color: #555555;
    margin-bottom: 15px;
    text-align: justify;
}

.privacidad-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.privacidad-list li {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(0.95rem + 0.15vw);
    line-height: 1.8;
    color: #555555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.privacidad-list li::before {
    content: "•";
    color: #B87333;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

.privacidad-list li strong {
    color: #1B4D3E;
    font-weight: 600;
}

.privacidad-contact {
    background-color: #FAF3E0;
    padding: 25px;
    border-left: 4px solid #1B4D3E;
    margin: 30px 0;
    border-radius: 4px;
}

.privacidad-contact p {
    margin: 0;
    font-weight: 500;
    color: #1B4D3E;
}

.privacidad-contact a {
    color: #B87333;
    text-decoration: underline;
}

.privacidad-contact a:hover {
    color: #1B4D3E;
}

/* =======================
   DIV-4: POLÍTICA DE COOKIES
   ======================= */
#div-4 {
    width: 100%;
    min-height: 600px;
    background-color: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 60px;
    box-sizing: border-box;
}

#div-4 .content {
    width: 100%;
    max-width: 1200px;
}

.cookies-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.cookies-title {
    font-family: 'poiret_oneregular', Arial, sans-serif;
    font-size: calc(2rem + 1.5vw);
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

.cookies-intro {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(1rem + 0.25vw);
    line-height: 1.8;
    color: #333333;
    margin-bottom: 40px;
    text-align: justify;
}

.cookies-section {
    margin-bottom: 35px;
}

.cookies-section-title {
    font-family: 'poiret_oneregular', Arial, sans-serif;
    font-size: calc(1.5rem + 0.5vw);
    font-weight: 600;
    color: #B87333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #B87333;
}

.cookies-section-text {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(0.95rem + 0.15vw);
    line-height: 1.8;
    color: #555555;
    margin-bottom: 15px;
    text-align: justify;
}

.cookies-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.cookies-list li {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: calc(0.95rem + 0.15vw);
    line-height: 1.8;
    color: #555555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.cookies-list li::before {
    content: "•";
    color: #B87333;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

.cookies-list li strong {
    color: #1B4D3E;
    font-weight: 600;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Raleway', Arial, sans-serif;
}

.cookies-table th,
.cookies-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookies-table th {
    background-color: #1B4D3E;
    color: #ffffff;
    font-weight: 600;
}

.cookies-table tr:hover {
    background-color: #FAF3E0;
}

.cookies-info-box {
    background-color: #FAF3E0;
    padding: 20px;
    border-left: 4px solid #B87333;
    margin: 20px 0;
    border-radius: 4px;
}

.cookies-info-box p {
    margin: 0;
    font-weight: 500;
    color: #1B4D3E;
}

.cookies-info-box a {
    color: #B87333;
    text-decoration: underline;
}

.cookies-info-box a:hover {
    color: #1B4D3E;
}

/* Estilos para subtítulos h3 dentro de secciones */
.cookies-section h3,
.privacidad-section h3,
.terminos-section h3 {
    font-family: 'poiret_oneregular', Arial, sans-serif;
    font-size: calc(1.25rem + 0.3vw);
    font-weight: 600;
    color: #1B4D3E;
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Mejoras para enlaces en todas las secciones */
.terminos-section-text a,
.privacidad-section-text a,
.cookies-section-text a,
.privacidad-list a,
.cookies-list a {
    color: #B87333;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terminos-section-text a:hover,
.privacidad-section-text a:hover,
.cookies-section-text a:hover,
.privacidad-list a:hover,
.cookies-list a:hover {
    color: #1B4D3E;
    text-decoration: underline;
}

/* Estilos para mejorar la legibilidad de tablas en cookies */
.cookies-table td:first-child {
    font-weight: 500;
    color: #1B4D3E;
}

.cookies-table td {
    word-break: break-word;
}

.cookies-table a {
    color: #B87333;
    text-decoration: underline;
}

.cookies-table a:hover {
    color: #1B4D3E;
}

/* Animación suave para secciones al hacer scroll */
.terminos-section,
.privacidad-section,
.cookies-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.terminos-section.visible,
.privacidad-section.visible,
.cookies-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras para impresión */
@media print {
    #div-2,
    #div-3,
    #div-4 {
        background-color: #ffffff !important;
        padding: 20px !important;
        box-shadow: none !important;
    }

    .terminos-container,
    .privacidad-container,
    .cookies-container {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .terminos-section,
    .privacidad-section,
    .cookies-section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .cookies-table {
        font-size: 0.75rem;
    }
}

/* Mejoras de accesibilidad */
.terminos-section-title:focus,
.privacidad-section-title:focus,
.cookies-section-title:focus {
    outline: 2px solid #B87333;
    outline-offset: 4px;
}

/* Estilos para textos destacados y notas */
.cookies-section-text em,
.privacidad-section-text em,
.terminos-section-text em {
    font-style: italic;
    color: #666;
}

/* Espaciado mejorado entre secciones */
.terminos-section + .terminos-section,
.privacidad-section + .privacidad-section,
.cookies-section + .cookies-section {
    margin-top: 40px;
}

/* =======================
   RESPONSIVE DESIGN
   ======================= */
@media (max-width: 768px) {
    #div-2,
    #div-3,
    #div-4 {
        padding: 60px 15px 40px;
    }

    .terminos-container,
    .privacidad-container,
    .cookies-container {
        padding: 30px 20px;
    }

    .terminos-title,
    .privacidad-title,
    .cookies-title {
        font-size: calc(1.75rem + 1vw);
    }

    .terminos-section-title,
    .privacidad-section-title,
    .cookies-section-title {
        font-size: calc(1.25rem + 0.5vw);
    }

    .terminos-list li,
    .privacidad-list li,
    .cookies-list li {
        font-size: calc(0.9rem + 0.1vw);
    }

    .cookies-table {
        font-size: 0.85rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .terminos-container,
    .privacidad-container,
    .cookies-container {
        padding: 20px 15px;
    }

    .terminos-title,
    .privacidad-title,
    .cookies-title {
        font-size: 1.5rem;
    }

    .cookies-table {
        display: block;
        overflow-x: auto;
        font-size: 0.8rem;
    }

    .cookies-section h3,
    .privacidad-section h3,
    .terminos-section h3 {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .terminos-section,
    .privacidad-section,
    .cookies-section {
        opacity: 1;
        transform: none;
    }
}

/* Mejoras para tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .cookies-table {
        font-size: 0.85rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 10px 8px;
    }
}

/* Mejoras para pantallas grandes */
@media (min-width: 1200px) {
    .terminos-container,
    .privacidad-container,
    .cookies-container {
        max-width: 1100px;
    }
}

