/*
Theme Name: OceanWP Child
Theme URI: https://argentopia.com.ar
Description: Child theme de OceanWP
Author: Daniel Herrera
Template: oceanwp
Version: 1.0
*/


/* ROOT */
:root {
    --safe-bottom: env(safe-area-inset-bottom, 0px); /* Asegura que el contenedor no quede pegado al borde en iPhone */
}

/* RESET PARA LANDING: Eliminamos rellenos de OceanWP que rompen el viewport */
body.page-id-1825 .page-template-template-landing #content-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.page-id-1825 .page-template-template-landing #main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remuevo de TODOS los dispositivos móviles el margin-bottom: 40px; predeterminado del área de contenido */
@media (max-width: 959px) {
    .content-area {
        margin-bottom: 0 !important;
    }
}

/* Fix márgenes superior e inferior forms lectores-registro, acceso e ingresar */
.contenedor-formulario:has(.wppb-error) {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
}

#primary {
    width: 100% !important;
}

@media (min-width: 960px) {
    #main {
        width: 100% !important;
        max-width: 100% !important; /* Evita que el contenedor por defecto lo limite */
        margin-left: auto;
        margin-right: auto;
    }
}

/* CORRECCIÓN PÁGINA /INGRESAR (ID 1058) */
.page-id-1058 #content-wrap {
    min-height: calc(100vh - 70px);
}

.page-id-1058 #wppb-login-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-id-1058 #wppb-login-wrap form,
.page-id-1058 .login-register-lost-password {
    width: 100%;
    max-width: 240px; /* ajustá si tu form es más ancho */
}

.page-id-1058 .login-register-lost-password {
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .page-id-1058 p {
        width: 96%;
        max-width: 100%;
    }
}

/* CORRECCIÓN PÁGINA /RESETEO-DE-CONTRASENA (ID 1060) */
.page-id-1060 #content-wrap {
    min-height: calc(100vh - 70px);
}

.page-id-1060 #main #content-wrap {
    padding-top: 0px;
    padding-bottom: 0px;
}

/* CENTRAR EL BLOQUE DEL INPUT */
.page-id-1060 #wppb-recover-password li.wppb-username-email {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ACHICAR INPUT */
.page-id-1060 #wppb-recover-password .text-input {
    max-width: 320px;
    width: 100%;
    margin-bottom: 15px;
}

/* TEXTO */
.page-id-1060 #wppb-recover-password p {
    text-align: center;
}

/* BOTÓN */
.page-id-1060 #wppb-recover-password-button {
    width: 250px;
    height: 45px;
    background-color: #EFBC51;
    color: #000;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    
    display: block;              /* clave */
    margin: 15px auto 0 auto;    /* lo centra */

    text-align: center;          /* centra horizontalmente el texto */


    border: none;
    cursor: pointer;

    transition: background-color 0.3s, box-shadow 0.3s;
}

/* HOVER */
.page-id-1060 #wppb-recover-password-button:hover {
    background-color: #FFF0A0;
    box-shadow: 0 0 10px #FFF0A0;
}





/* CORRECCIÓN PÁGINA /LECTORES-REGISTRO (ID 941) */
.page-id-941 #content-wrap {
    min-height: calc(100vh - 70px);
}

.page-id-941 .wppb-user-forms .submit.button, .page-id-1057 .wppb-user-forms .submit.button {
    background-color: #EFBC51 !important;
    color: #000 !important;
}

.page-id-941 .wppb-user-forms .submit.button:hover, .page-id-1057 .wppb-user-forms .submit.button:hover {
    background-color: #FFF0A0 !important;
    box-shadow: 0 0 10px #FFF0A0 !important;
	text-decoration: none !important;
	color: #000 !important;
}

/* CORRECCIÓN PÁGINA /ACCESO (ID 1057) */
.page-id-1057 #content-wrap {
    min-height: calc(100vh - 70px);
}

/* CORRECCIÓN PÁGINA /MI-CUENTA (ID 865) */
.page-id-865 #content-wrap {
    min-height: calc(100vh - 70px);
}

/* CORRECCIÓN PÁGINA DE CONTACTO (ID 72) */
.page-id-72 #content-wrap {
    min-height: calc(100vh - 70px) !important;
}

.page-id-72 #wpforms-submit-911 {
    margin-top: 15px;
}

/* CORRECCIÓN EN IPHONES INV. PÁGINA /ACCESO (ID 1057) */
@media (max-width: 768px) {
    .page-id-1057 .content-area {
        margin-top: 15px;
    }
}





/* PÁGINA EDITAR-PERFIL (ID 1059) */
body.page-id-1059 #content-wrap {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

body.page-id-1059 .contenedor-formulario {
    min-height: calc(100vh - 70px) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    body.page-id-1059 .contenedor-formulario {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* Lista desplegable */
body.page-id-1059 .select2-container .select2-selection--single{
    height: 45px !important;
    display: flex !important;
    align-items: center !important;

    padding: 6px 12px 6px 12px !important; /* top right bottom left */
    
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #000 !important; /* podés cambiar el color si querés */
    
    border-radius: 7px !important;
    
    box-sizing: border-box !important; /* importante para que el padding no rompa el ancho */
}

/* Botón amarillo de editar-perfil */
.page-id-1059 #edit_profile {
	padding: 0;
    width: 200px;
    max-width: 200px;
    height: 45px;
    background-color: #EFBC51;
    color: #000;
	border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
	cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.3s, box-shadow 0.3s;
	margin: 0 auto;
}

.page-id-1059 #edit_profile:hover{
    background-color: #FFF0A0;
    box-shadow: 0 0 10px #FFF0A0;
	text-decoration: none;
	color: #000;
}

.page-id-1059 .contenedor-formulario ul {
    margin: 15px 0 35px 20px !important;
}





/* HEADER */
/* Alinear el menú desplegable del usuario a la derecha */
#menu-item-1755 .sub-menu {
    left: auto !important;   /* Cancela la alineación izquierda por defecto */
    right: 0 !important;      /* Alinea el borde derecho del panel con el del ícono */
    min-width: 160px;        /* Ajustá el ancho si querés que sea más o menos ancho */
}

@media (max-width: 959px) {

    /* 1. QUITAR LÍNEA DIVISORIA EN LOS ÚLTIMOS 3 ITEMS (Iconos) */
    #mobile-nav ul.menu > li:nth-last-child(-n+3)::after {
        display: none !important;
        content: none !important;
    }

    /* 2. QUITAR LÍNEA DIVISORIA AL ÍTEM DE CONTACTO (El 4to contando desde el final) */
    /* Esto asegura que entre /Contacto y los iconos no haya raya */
    #mobile-nav ul.menu > li:nth-last-child(4)::after {
        display: none !important;
    }

    /* 3. ALINEACIÓN HORIZONTAL DE LOS 3 ICONOS */
    #mobile-nav ul.menu > li:nth-last-child(-n+3) {
        display: inline-block !important;
        width: auto !important;
        padding: 0 !important;
        margin-top: 20px !important; /* Espacio entre /Contacto y la fila de iconos */
    }

    /* 4. ESPACIADO ENTRE ICONOS */
    /* Aplicamos margen derecho al primero y al segundo icono de la fila */
    #mobile-nav ul.menu > li:nth-last-child(3),
    #mobile-nav ul.menu > li:nth-last-child(2) {
        margin-right: 30px !important; /* Ajustá este valor para separarlos más o menos */
    }

    /* 5. CENTRAR TODO EL BLOQUE */
    #mobile-nav ul.menu {
        text-align: center !important;
    }
}




/* LANDING PAGE*/
/* LANDING INICIO */
/* Estructura total home */
body.page-id-1825 .landing-inicio {
    position: relative;
}

body.page-id-1825 .landing-inicio .wp-block-cover {
    position: relative;
    height: calc(100vh - 105px);
    min-height: calc(100vh - 105px) !important;

    width: 100vw;
    margin-left: calc(50% - 50vw);
}

body.page-id-1825 .landing-inicio #content-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Barra anuncio superior */
body.page-id-1825 .landing-inicio .anuncio-bar {
    background-color: #000;
    width: 100vw;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;	
    margin-left: calc(50% - 50vw);
}

body.page-id-1825 .landing-inicio .anuncio-track {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 15px;
    white-space: nowrap;
    display: flex;
    gap: 8px;
    width: max-content;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

body.page-id-1825 .landing-inicio .anuncio-bar .separador {
    padding: 0 5px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
    body.page-id-1825 .landing-inicio .wp-block-cover {
        height: calc(100dvh - 105px);
        min-height: calc(100dvh - 105px) !important;
    }
    
    body.page-id-1825 .landing-inicio .base-container {
        bottom: calc(60px + var(--safe-bottom)) !important;
    }
}

/* Imagen de fondo fullscreen, solo en página de inicio */
body.page-id-1825 .landing-inicio .wp-block-cover__image-background {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center 35%;
}

body.page-id-1825 .landing-inicio .wp-block-cover__inner-container {
    height: 100%;
}

body.page-id-1825 .page-template-template-landing .landing-inicio #main {
    width: 100% !important;
}

/* Base container solo en la página de inicio */
body.page-id-1825 .landing-inicio .base-container {
    position: absolute;
    bottom: calc(20px + var(--safe-bottom));
    left: 0;

    width: 100vw;
    margin-left: calc(50% - 50vw);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 70px;
    box-sizing: border-box;
    z-index: 3;
}

body.page-id-1825 .landing-inicio .autor-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(18px, 2vw + 1rem, 25px);
    color: #000;
    line-height: 1.1;
}

body.page-id-1825 .landing-inicio .btn-amarillo {
    width: 300px;
    height: 45px;
    background-color: #EFBC51;
    color: #000;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.page-id-1825 .landing-inicio .btn-amarillo:hover { 
    background-color: #FFF0A0;
    box-shadow: 0 0 10px #FFF0A0;
}

/* Para que base container se apile en vista móvil */
@media (max-width: 480px) {
    body.page-id-1825 .landing-inicio .base-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px 25px;
        text-align: center;
    }

    body.page-id-1825 .landing-inicio .btn-amarillo {
        width: 220px;
        height: 42px;
        font-size: 16px;
    }

    .landing-inicio .autor-text {
        font-size: 18px;
    }
}

/* LANDING SINOPSIS */
/* Márgenes de 70px específicos para landing-sinopsis */
@media (min-width:960px){

    body.page-id-1825 #main{
        width:100% !important;
        max-width:none !important;
        margin-left:0 !important;
        margin-right:0 !important;
    }

    body.page-id-1825 .landing-sinopsis{
        margin-left:70px;
        margin-right:70px;
    }

}

/* Para que el contenedor ocupe exactamente el alto del viewport */
@media (min-width: 769px) {
    
    body.page-id-1825 .landing-sinopsis {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    }
    
    body.page-id-1825 .landing-sinopsis #content-wrap {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical */
        align-items: center;     /* Centrado horizontal */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box;
    }
	
    /* Ajuste del bloque de columnas */
    body.page-id-1825 .landing-sinopsis .wp-block-columns {
        display: flex;
        align-items: center; 
        justify-content: space-between;
        width: 100%;
        max-width: 100%; /* Para que el diseño no se rompa en pantallas muy anchas */
        margin: 0 auto !important; /* Eliminamos el margin-top negativo anterior */
        gap: 0;
    }

    /* Columna izquierda con línea negra */
    body.page-id-1825 .wp-block-column:first-child { /* ORIGINAL: body.page-id-1825 .landing-sinopsis .wp-block-column:first-child */
        flex: 0 0 40% !important; 
        padding-right: 80px !important; /* Mucho aire para separar el sol */
        padding-left: 30px;
        border-left: 3px solid #000;
        align-self: center;
        z-index: 2;
    }
    
        /* Columna del sol */
    body.page-id-1825 .wp-block-column:last-child {
        flex: 0 0 60% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Sol grande pero sin romper el ancho */
    body.page-id-1825 .wp-block-column:last-child img {
        opacity: 0.1;
        width: 100% !important;
        max-width: 800px !important; /* Tamaño grande */
        height: auto !important;
        /* Limito el alto de la imagen al 75% del viewport para asegurar que quepa con el H2 */
        max-height: 75vh !important;
        object-fit: contain;
    }

}

/* Vista móvil */
@media (max-width: 768px) {
    
    body.page-id-1825 .landing-sinopsis {
        /* height: 100dvh !important; */
        /* min-height: 100dvh !important; */
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    body.page-id-1825 .landing-sinopsis .wp-block-columns {
        flex-direction: column !important;
        max-width:90%;
        margin-left:auto;
        margin-right:auto;
    }

    /* Estructura de la columna de texto */
    body.page-id-1825 .landing-sinopsis .wp-block-column:first-child {
        border-left: none !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Línea superior: aparece ahora con 30px de aire arriba y abajo) */
    body.page-id-1825 .landing-sinopsis .wp-block-column:first-child::before {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* 30px del header */
        margin-bottom: 30px !important; /* 30px del H2 */
    }

    /* Línea inferior */
    body.page-id-1825 .landing-sinopsis .wp-block-column:first-child::after {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* Mantiene 30px con el texto para simetría */
        margin-bottom: 30px !important;
    }

    /* 3. Ajuste milimétrico de títulos y párrafos */
    body.page-id-1825 .landing-sinopsis h2 {
        text-align: center !important;
        width: 100%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding-bottom: 30px !important; /* 30px exactos hacia el párrafo */
        line-height: 1.2;
    }

    body.page-id-1825 .landing-sinopsis p {
        text-align: center !important;
        width: 100%;
        max-width: 96%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding: 0 !important;
        line-height: 1.4;
    }

    /* Sol de fondo centrado */
    body.page-id-1825 .landing-sinopsis::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 80%;
        background-image: url('/wp-content/uploads/2026/02/sol_entero.webp');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none;
    }

    body.page-id-1825 .landing-sinopsis .wp-block-column:last-child {
        display: none !important;
    }

}



/* FLECHITA SCROLLER */
body.page-id-1825 .landing-arrow {
    position: fixed;
    left: 50%;
    bottom: 50px; /* Ajustado para que no tape tanto el texto en móvil */
    transform: translateX(-50%);
    width: 60px;
    height: auto;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.3s ease;
    /* Por defecto es blanca (para el inicio) */
}

/* Ajuste para que no tape el botón amarillo en móviles */
@media (max-width: 480px) {
    body.page-id-1825 .landing-arrow {
        bottom: 20px; /* La bajamos un poco más */
        width: 45px;  /* Un pelín más chica para que no moleste */
    }
}

/* Estado Gris Topo (Para fondo blanco) */
/* Usamos invert para que lo blanco pase a negro y luego bajamos opacidad 
   o ajustamos brillo para que sea gris */
body.page-id-1825 .landing-arrow.dark {
    filter: invert(0.6); /* Esto la lleva de blanco a un gris oscuro/topo */
}

/* Estado girado (Apunta hacia arriba) */
body.page-id-1825 .landing-arrow.up {
    transform: translateX(-50%) rotate(180deg);
}

/* Hover suave */
body.page-id-1825 .landing-arrow:hover {
    opacity: 0.7;
}

/* FOOTER PERSONALIZADO */
#footer-custom-argentopia {
    background-color: #000;
    width: 100vw;
    min-height: 300px;
    margin-left: calc(50% - 50vw); /* Asegura ancho total si el contenedor padre es estrecho */
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-logo {
    width: 300px;
    height: auto;
    margin-bottom: 20px; /* Espacio simple */
}

.footer-icons {
    display: flex;
    gap: 20px; /* Separación de 15px entre iconos */
    margin-bottom: 40px; /* El doble del espacio anterior (20px * 2) */
}

.footer-icons img {
    width: 35px;
    height: 35px;
    display: block;
}

.footer-credits {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semibold */
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Ajuste para móviles (por si el texto es muy largo) */
@media (max-width: 480px) {
    /* 1. Ocultamos el texto de créditos */
    .hide-mobile {
        display: none !important;
    }

    /* 2. Achicamos los iconos (de 46px a 32px por ejemplo) */
    .footer-icons img {
        width: 32px !important;
        height: 32px !important;
    }

    /* 3. Ajustamos el espacio del logo y el contenedor */
    .footer-logo {
        width: 140px; /* Un poco más chico en móvil */
    }

    .footer-icons {
        margin-bottom: 0; /* Quitamos el margen ya que no hay texto abajo */
        gap: 20px;
    }

    #footer-custom-argentopia {
        min-height: 150px; /* Reducimos la altura total en móvil ya que hay menos contenido */
        padding: 20px 0;
    }
}





/* BOTÓN WHATSAPP: SOLO TRAZO */
.whatsapp-fixed {
    position: fixed;
    bottom: 25px; 
    right: 25px;  
    width: 60px; /* Un poco más pequeño para que sea elegante */
    height: 60px;
    background-color: transparent; /* Sin fondo */
    color: #000000; /* El color del trazo será negro */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.whatsapp-fixed svg {
    width: 100%;
    height: 100%;
    /* stroke-width controla el grosor de la línea negra */
    stroke-width: 1.5px; 
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
    color: #333333; /* Un gris oscuro al pasar el mouse */
}

/* OCULTAR WHATSAPP EN MÓVILES --- */
@media (max-width: 768px) {
    .whatsapp-fixed {
        display: none !important; /* Desaparece por completo en móviles y tablets */
    }
}





/* PÁGINA SINOPSIS ORIGINAL  */
@media (min-width: 960px) {

    body.page-id-1149 #main {
        width: calc(100% - 70px - 7.5%) !important;
        margin-left: 70px !important;
        margin-right: 7.5% !important;
        max-width: 100% !important;
    }
    
    body.page-id-1149 .container {
    margin: 0 !important;
    }

}

    /* Columna izquierda con línea negra */
    body.page-id-1149 .wp-block-column:first-child {
        flex: 0 0 40% !important; 
        padding-right: 80px !important; /* Mucho aire para separar el sol */
        padding-left: 30px;
        border-left: 3px solid #000;
        align-self: center;
        z-index: 2;
    }
    
        /* Columna del sol */
    body.page-id-1149 .wp-block-column:last-child {
        flex: 0 0 60% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Sol grande pero sin romper el ancho */
    body.page-id-1149 .wp-block-column:last-child img {
        opacity: 0.1;
        width: 100% !important;
        max-width: 800px !important; /* Tamaño grande */
        height: auto !important;
        /* Limito el alto de la imagen al 75% del viewport para asegurar que quepa con el H2 */
        max-height: 75vh !important;
        object-fit: contain;
    }

/* Vista móvil */
@media (max-width: 768px) {
    
    body.page-id-1149 #main #content-wrap {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
    
    body.page-id-1149 #content-wrap {
        min-height: calc(100vh - 70px);
        display: flex;
        align-items: center;     /* centra vertical */
        justify-content: center; /* centra horizontal si querés */
    }
    
    body.page-id-1149 .wp-block-columns {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Estructura de la columna de texto */
    body.page-id-1149 .wp-block-column:first-child {
        border-left: none !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Línea superior: aparece ahora con 30px de aire arriba y abajo) */
    body.page-id-1149 .wp-block-column:first-child::before {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* 30px del header */
        margin-bottom: 30px !important; /* 30px del H2 */
    }
    
    /* Línea inferior */
    body.page-id-1149 .wp-block-column:first-child::after {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* Mantiene 30px con el texto para simetría */
        margin-bottom: 30px !important;
    }

    /* 3. Ajuste milimétrico de títulos y párrafos */
    body.page-id-1149 h2 {
        text-align: center !important;
        width: 100%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding-bottom: 30px !important; /* 30px exactos hacia el párrafo */
        line-height: 1.2;
    }

    body.page-id-1149 p {
        text-align: center !important;
        width: 100%;
        max-width: 96%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding: 0 !important;
        line-height: 1.4;
    }

    /* Sol de fondo centrado */
    body.page-id-1149::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 80%;
        background-image: url('/wp-content/uploads/2026/02/sol_entero.webp');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none;
    }


    body.page-id-1149 .wp-block-column:last-child {
        display: none !important;
    }
    
}





/* PÁGINA /EL-PROYECTO (ID 63) */
@media (min-width: 960px) {

    body.page-id-63 #main {
        width: calc(100% - 70px - 7.5%) !important;
        margin-left: 70px !important;
        margin-right: 7.5% !important;
        max-width: 100% !important;
    }
    
    body.page-id-63 .container {
    margin: 0 !important;
    }

}

/* Comportamiento desktop */
@media (min-width: 769px) {	
    
    /* Para que el contenedor ocupe exactamente el alto del viewport menos el header */
    body.page-id-63 #content-wrap {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical */
        align-items: center;     /* Centrado horizontal */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box;
    }
	
    body.page-id-63 .wp-block-column.linea-negra {
        border-left: 3px solid #000 !important;
        padding-left: 30px !important;
        margin-left: 0 !important; 
    }
    
    body.page-id-63 .wp-block-column {
        padding-right: 15px !important; /* Espacio para que el texto respire, el 10/02/2026 bajé de 50px a 10px */
    }
    
    /* Medio sol en desktop */
    body.page-id-63::before {
        content: "";
        position: fixed;
        /* El centro del área útil es: 50% de la pantalla + la mitad del header (35px) */
        top: calc(50% + 35px); 
        right: 0;
        transform: translateY(-50%);
        width: 40%;
        height: 80vh;
        background-image: url('/wp-content/uploads/2026/02/medio_sol.webp');
        background-repeat: no-repeat;
        background-position: right center;
        background-size: contain;
        opacity: 0.15;
        z-index: 0;
        pointer-events: none;
    }
    
}

/* Aplicar fondo de SOL, solo a la página El Proyecto */

/* Solo transparento el contenedor de texto, NO el header ni el footer */
body.page-id-63 main {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

/* Comportamiento móviles */
@media (max-width: 768px) {

    /* RESET DE CONTENEDORES */
    body.page-id-63 .wp-block-columns {
        gap: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    body.page-id-63 #main #content-wrap {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    /* Sol entero en móviles */
    body.page-id-63::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 80%;
        background-image: url('/wp-content/uploads/2026/02/sol_entero.webp');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none;
    }

    body.page-id-63 .wp-block-column.linea-negra {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Línea siempre arriba de cada columna */
    body.page-id-63 .wp-block-column.linea-negra::before {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-bottom: var(--espacio-fijo) !important;
        margin-top: var(--espacio-fijo) !important;
    }
    
    /* Centrar el H1 solo en la página El Proyecto */
    body.page-id-63 h1 {
        text-align: center !important;
        width: 100%;
        margin-top: 0;
        margin-bottom: -10px !important; /* Margen negativo para pegarlo a la línea */
        position: relative;
        z-index: 5;
    }

    /* Títulos H2 centrados */
    body.page-id-63 .wp-block-column.linea-negra h2 {
        text-align: center !important;
        width: 100%;
        margin-top: 0 !important; /* El espacio lo da el before */
        margin-bottom: var(--espacio-fijo) !important;
    }

    /* Párrafos */
    body.page-id-63 .wp-block-column.linea-negra p {
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important; /* El espacio lo dará el before de la siguiente col */
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 96%;
    }

    /* Línea al final de "Valores" */
    body.page-id-63 .wp-block-column.linea-negra:last-child::after {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: var(--espacio-fijo) !important;
    }
    
}





/* PÁGINA LECTORES (ID 66) */
@media (min-width: 960px) {

    body.page-id-66 #main {
        width: calc(100% - 70px - 7.5%) !important;
        margin-left: 70px !important;
        margin-right: 7.5% !important;
        max-width: 100% !important;
    }
    
    body.page-id-66 .container {
    margin: 0 !important;
    }

}

@media (min-width: 769px) {
/* Para que el contenedor ocupe exactamente el alto del viewport menos el header */
    body.page-id-66 #content-wrap {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical */
        align-items: center;     /* Centrado horizontal */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box;
    }
	
/* Ajuste del bloque de columnas */
    body.page-id-66 .wp-block-columns {
        display: flex;
        align-items: center; 
        justify-content: space-between;
        width: 100%;
        max-width: 100%; /* Para que el diseño no se rompa en pantallas muy anchas */
        margin: 0 auto !important; /* Eliminamos el margin-top negativo anterior */
        gap: 0;
    }

    /* Columna de texto sacrificando el aire */
    body.page-id-66 .wp-block-column:first-child {
        flex: 0 0 40% !important; 
        padding-right: 80px !important; /* Mucho aire para separar el sol */
        padding-left: 30px;
        border-left: 3px solid #000;
        align-self: center;
        z-index: 2;
    }

    /* Columna del sol */
    body.page-id-66 .wp-block-column:last-child {
        flex: 0 0 60% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Sol grande pero sin romper el ancho */
    body.page-id-66 .wp-block-column:last-child img {
        opacity: 0.5 !important;
        width: 100% !important;
        max-width: 800px !important; /* Tamaño grande */
        height: auto !important;
        /* Limito el alto de la imagen al 75% del viewport para asegurar que quepa con el H2 */
        max-height: 75vh !important;
        object-fit: contain;
    }
}

/* Vista móvil */
@media (max-width: 768px) {
    body.page-id-66 #content-wrap {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical */
        align-items: center;     /* Centrado horizontal */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box;
    }
    
    body.page-id-66 main {
        margin-top: 0 !important; 
    }
    
    body.page-id-66 #main #content-wrap {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    /* Estructura de la columna de texto */
    body.page-id-66 .wp-block-column:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Línea superior: aparece ahora con 30px de aire arriba y abajo) */
    body.page-id-66 .wp-block-column:first-child::before {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* 30px del header */
        margin-bottom: 30px !important; /* 30px del H2 */
    }

    /* Línea inferior */
    body.page-id-66 .wp-block-column:first-child::after {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* Mantiene 30px con el texto para simetría */
        margin-bottom: 30px !important; /* REDUCIDO: se acerca al fondo del navegador */
    }

    /* 3. Ajuste milimétrico de títulos y párrafos */
    body.page-id-66 h2 {
        text-align: center !important;
        width: 100%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding-bottom: 30px !important; /* 30px exactos hacia el párrafo */
        line-height: 1.2;
    }

    body.page-id-66 p {
        text-align: center !important;
        width: 100%;
        max-width: 96%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding: 0 !important;
        line-height: 1.4;
    }

    /* Sol de fondo centrado */
    body.page-id-66::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 80%;
        background-image: url('/wp-content/uploads/2026/02/sol_entero.webp');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none;
    }

    body.page-id-66 .wp-block-column:last-child {
        display: none !important;
    }
    
    /* Separación entre el párrafo y el bloque de botones en móvil */
    body.page-id-66 .wp-block-buttons {
        margin-top: 40px !important; /* Ajustá este valor a tu gusto */
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    /* Neutralizo el margen predeterminado para el content-area */
    body.page-id-66 .content-area {
        margin-bottom: 0 !important;
        float: none !important;
    }
    
    /* Neutralizo la variable var de espacio heredada para esta página */
    body.page-id-66 {
        --espacio-fijo: 0px !important;
    }
    
    /* Neutralizo el padding violeta del contenedor principal */
    body.page-id-66 #main #content-wrap {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Fondo degradado */
body.page-id-66 {
    background: linear-gradient(180deg, #B3DEFF 0%, #DBEFFF 50%, #FFFFFF 100%) !important;
    background-attachment: fixed !important;
}

/* Forzamos transparencia para que el degradado del body sea visible */
body.page-id-66 #main, 
body.page-id-66 #content-wrap, 
body.page-id-66 #primary {
    background: transparent !important;
    border: none !important;
}

/* Botón de "Material Complementario" */
.btn-material, .wp-block-button__link {
    width: 350px;
    height: 55px;
    background-color: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    font-family: 'Montserrat', sans-serif;
    display: flex !important; /* Cambiado a flex para centrar contenido */
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    margin: 30px auto 0 auto; /* Centrado horizontal con 'auto' */
    transition: all 0.3s ease;
}

/* HOVER: Fondo azul con texto negro */
.btn-material:hover, 
.wp-block-button__link:hover {
    background-color: #B3DEFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
    opacity: 1 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* En móvil, que no sea más ancho que la pantalla */
@media (max-width: 480px) {
    .btn-material {
        width: 100%;
        max-width: 280px;
        font-size: 15px;
    }
}





/* PÁGINA "MATERIAL COMPLEMENTARIO" (ID 1854) */
@media (min-width: 960px) {

    body.page-id-1854 #main {
        width: calc(100% - 70px - 7.5%) !important;
        margin-left: 70px !important;
        margin-right: 7.5% !important;
        max-width: 100% !important;
    }
    
    body.page-id-1854 .container {
    margin: 0 !important;
    }

}

@media (min-width: 769px) {
/* Para que el contenedor ocupe exactamente el alto del viewport menos el header */
    /* 1. Contenedor principal con el "freno" para el inspector */
    body.page-id-1854 #content-wrap {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important; 
        /* Ajusté el clamp: ahora el "piso" es 80px para que con el inspector no quede tan abajo */
        padding-top: clamp(120px, 20vh, 200px) !important; 
        align-items: center;
        padding-bottom: 100px !important; /* Espacio de seguridad al final */
        box-sizing: border-box;
    }

    /* 2. Nivelación de las columnas */
    body.page-id-1854 .wp-block-columns {
        display: flex;
        align-items: flex-start !important; /* Clave para que Título y Cap 2 nazcan juntos */
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        margin: 0 auto !important;
        gap: 60px; /* Reducido un poco para que respire mejor */
    }

    /* 3. Columna Izquierda (Título) */
    body.page-id-1854 .wp-block-column:first-child {
        flex: 0 0 40% !important; 
        padding-right: 80px !important; /* Reducido para evitar desbordes */
        padding-left: 30px;
        border-left: 3px solid #000;
        align-self: flex-start !important; /* CAMBIADO: Antes decía center */
        z-index: 2;
    }

    /* 4. Columna Derecha (Acordeones) */
    body.page-id-1854 .wp-block-column:last-child {
        flex: 0 0 60% !important; /* Bajé a 55% para dar margen de error */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important; /* Para que el acordeón ocupe todo el ancho de su columna */
    }

    /* Sol grande pero sin romper el ancho */
    body.page-id-1854 .wp-block-column:last-child img {
        opacity: 0.5 !important;
        width: 100% !important;
        max-width: 800px !important; /* Tamaño grande */
        height: auto !important;
        /* Limito el alto de la imagen al 75% del viewport para asegurar que quepa con el H2 */
        max-height: 75vh !important;
        object-fit: contain;
    }
}

/* Vista móvil */
@media (max-width: 768px) {
    
    body.page-id-1854 #content-wrap {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical */
        align-items: center;     /* Centrado horizontal */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box;
    }
    
    body.page-id-1854 main {
        margin-top: 0 !important; 
    }
    
    /* Neutralizo el padding violeta del contenedor principal */
    body.page-id-1854 #main #content-wrap {
        padding-top: 30px !important;
        padding-bottom: 60px !important;
    }
    
    /* Neutralizo el margen predeterminado para el content-area */
    body.page-id-1854 .content-area {
        margin-bottom: 0 !important;
        float: none !important;
    }
    
    /* Neutralizo la variable var de espacio heredada para esta página */
    body.page-id-1854 {
        --espacio-fijo: 0px !important;
    }
    
    /* Estructura de la columna de texto */
    body.page-id-1854 .wp-block-column:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Línea superior: aparece ahora con 30px de aire arriba y abajo) */
    body.page-id-1854 .wp-block-column:first-child::before {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* 30px del header */
        margin-bottom: 30px !important; /* 30px del H2 */
    }

    /* Línea inferior */
    body.page-id-1854 .wp-block-column:first-child::after {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* Mantiene 30px con el texto para simetría */
        margin-bottom: 30px !important; /* REDUCIDO: se acerca al fondo del navegador */
    }

    /* 3. Ajuste milimétrico de títulos y párrafos */
    body.page-id-1854 h2 {
        text-align: center !important;
        width: 100%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding-bottom: 30px !important; /* 30px exactos hacia el párrafo */
        line-height: 1.2;
    }

    body.page-id-1854 p {
        text-align: center !important;
        width: 100%;
        max-width: 96%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding: 0 !important;
        line-height: 1.4;
    }

    body.page-id-1854 .wp-block-column:last-child {
        display: none !important;
    }
    
    /* Separación entre el párrafo y el bloque de botones en móvil */
    body.page-id-1854 .wp-block-buttons {
        margin-top: 40px !important; /* Ajustá este valor a tu gusto */
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    /* Permitimos que se vea la segunda columna en móvil */
    body.page-id-1854 .wp-block-column:last-child {
        display: block !important;
        width: 100% !important;
        /* padding: 20px !important; */
    }
    
    body.page-id-1854 p {
        text-align: left !important;
    }
    
}

/* Fondo degradado */
body.page-id-1854 {
    background: linear-gradient(180deg, #B3DEFF 0%, #DBEFFF 50%, #FFFFFF 100%) !important;
    background-attachment: fixed !important;
}

/* Forzamos transparencia para que el degradado del body sea visible */
body.page-id-1854 #main, 
body.page-id-1854 #content-wrap, 
body.page-id-1854 #primary {
    background: transparent !important;
    border: none !important;
}

/* Contenedor del acordeón */
.acordeon-material {
    border-bottom: 2px solid #000 !important;
    padding: 20px 0 !important;
    margin-bottom: 0 !important;
}

/* Título (Capítulo X) */
.acordeon-material summary {
    font-weight: 800 !important;
    font-size: 22px !important;
    list-style: none; /* Quita la flecha nativa */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

/* Quitar flecha en Chrome/Safari */
.acordeon-material summary::-webkit-details-marker {
    display: none;
}

/* El círculo con el signo + / - */
.acordeon-material summary::after {
    content: "+";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #000;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* Cambio a signo - cuando está abierto */
.acordeon-material[open] summary::after {
    content: "-";
}

.acordeon-material a {
    text-decoration: underline;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    /* Forzar que el link no rompa la línea */
    display: inline !important; /* Evita que se comporte como un bloque */
    white-space: nowrap;        /* Evita que el texto interno del link se parta */
}

/* Si el texto que NO tiene link también se mueve, usamos esto en el contenedor */
.acordeon-material div p {
    display: block;
    width: 100%;
    line-height: 1.6;
}

/* Forzar que los acordeones se apilen verticalmente */
.wp-block-column:last-child {
    display: flex !important;
    flex-direction: column !important;
}

/* Ajuste para que cada bloque ocupe todo el ancho */
.acordeon-material, 
details, 
.wp-block-pb-accordion-item { /* Esta clase es común en Profile Builder */
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
}

/* Alineación al tope para la columna de Material Complementario */
body.page-id-1854 .wp-block-column:last-child {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Mueve todo hacia arriba */
    vertical-align: top !important;         /* Refuerzo para navegadores viejos */
    padding-top: 0 !important;              /* Elimina cualquier aire superior */
}

/* Opcional: Si el primer acordeón todavía tiene un margen arriba */
body.page-id-1854 .wp-block-column:last-child .acordeon-material:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}





/* CORRECCIÓN PÁGINA /COMPRAR-LIBRO (ID 2028) */
body.page-id-2028 #content-wrap {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

body.page-id-2028 .centrado-total {
    min-height: calc(100vh - 70px) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    body.page-id-2028 .centrado-total {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* Evita que el contenido quede demasiado pegado en mobile */
.page-id-2028 .centrado-total .libro-disponible {
    width: 100%;
}

/* Contenedor general */
.page-id-2028 .libro-disponible {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* Título principal */
.page-id-2028 .libro-disponible h1 {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 10px;
}

/* Subtexto */
.page-id-2028 .libro-disponible .subtexto {
    margin-bottom: 40px;
    font-size: 20px;
}

/* Subtítulos */
.page-id-2028 .libro-disponible h2 {
    font-weight: 500;
    font-size: 22px;
    margin: 40px 0;
}

/* Líneas */
.page-id-2028 .libro-disponible .linea {
    width: 600px;
    margin: 40px auto;
    border: none;
    border-top: 3px solid #000;
}

/* Filas de logos */
.page-id-2028 .libro-disponible .fila {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0;
}

/* Imágenes */
.page-id-2028 .libro-disponible .fila img {
    height: 50px; /* podés ajustar si querés */
    width: auto;
    display: block;
}

/* Comportamiento móviles */
@media (max-width: 768px) {
    .page-id-2028 .libro-disponible h1 {
        font-size: 24px;
    }

    .page-id-2028 .libro-disponible h2 {
        font-size: 18px;
    }

    .page-id-2028 .libro-disponible .fila img {
        height: 40px;
    }
    
    .page-id-2028 .libro-disponible .linea {
        width: 96%;
        margin: 30px auto;
        border: none;
        border-top: 3px solid #000;
    }
    
    body.page-id-2028 #content-wrap {
        padding-top: 30px !important;
        padding-bottom: 25px !important;
    }
}





/* WOOCOMMERCE */
.woocommerce #main #content-wrap {
    margin-left: 70px;
    margin-right: 70px;
}

/* Vista móvil */
@media (max-width: 768px) {
    .woocommerce #content-wrap {
        width: 100%;
    }
    
    .woocommerce #main #content-wrap {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Espacio entre las fotos y el título del producto */
    .woocommerce-product-gallery__wrapper {
        padding-bottom: 15px;
    }
}

/* Ocultar categorías */
.product_meta {
    display: none;
}
/* Ícono de carrito en color negro */
@media (min-width: 960px) {

    /* Alineación Manual sin Flex */
    li.woo-menu-icon a.wcmenucart {
        display: block; /* Volvemos al estándar de OceanWP */
        height: 70px;
        padding-top: 2px !important; /* El empujón para centrar los 25px del icono */
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box; /* Fundamental para que el padding no estire el header */
    }

    /* Color y tamaño del icono */
    li.woo-menu-icon svg.owp-icon,
    li.woo-menu-icon svg.owp-icon use {
        fill: #000000;
        stroke: #000000;
        width: 25px;
        height: 25px;
        opacity: 1;
        filter: brightness(0) saturate(100%);
        transition: none;
    }

    /* Asegurar que el número no desajuste todo */
    li.woo-menu-icon .wcmenucart-details.count {
        color: #000000;
        vertical-align: middle;
    }
}

/* Ocultar "Seguir comprando" */
.woocommerce-message {
    display: none !important;
}

/* Botón Actualizar carrito */
.woocommerce-cart-form button[name="update_cart"] {
    background-color: #91c4eb !important;
    color: #000 !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.woocommerce-cart-form button[name="update_cart"]:hover {
    background-color: #55a8e8 !important;
}

/* Botón Finalizar compra */
.wc-proceed-to-checkout .checkout-button {
    background-color: #91c4eb !important;
    color: #000 !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #55a8e8 !important;
}

/* Botón Realizar el pedido */
.woocommerce-checkout #place_order{
    background-color: #91c4eb !important;
    color: #000 !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.woocommerce-checkout #place_order:hover{
    background-color: #55a8e8 !important;
}

/* Página de Pedido recibido */

/* Mensaje de confirmación */
.woocommerce-notice--success{
font-family:Montserrat, sans-serif;
font-size:18px;
font-weight:600;
margin-bottom:25px;
}

/* Lista superior (numero de pedido, fecha, etc) */
.woocommerce-order-overview{
display:grid;
grid-template-columns:1fr; /* una sola columna */
gap:12px;
padding:0;
margin:30px 0;
list-style:none;
}

.woocommerce-order-overview li{
font-family:Montserrat,sans-serif;
font-size:13px;
color:#666;
letter-spacing:.5px;
text-transform:uppercase;
}

.woocommerce-order-overview li strong{
display:block;
font-size:15px !important;
font-weight:600;
color:#000;
margin-top:3px;
text-transform:none;
}

/* Títulos H2 */
.woocommerce-order h2{
font-family:Montserrat, sans-serif;
font-size:20px;
font-weight:600;
margin-bottom:20px;
}

/* Detalles del pedido */
.woocommerce-table thead th{
font-family:Montserrat, sans-serif;
font-size:14px;
text-transform:uppercase;
letter-spacing:0.5px;
}

.woocommerce-table tbody td{
font-family:Montserrat, sans-serif;
font-size:14px;
}

.woocommerce-table tfoot th,
.woocommerce-table tfoot td{
font-family:Montserrat, sans-serif;
font-size:14px;
}

/* Dirección */
.woocommerce-customer-details address{
font-family:Montserrat, sans-serif;
font-size:14px;
line-height:1.6;
}

/* PÁGINA "PRENSA" (ID 2109) */
@media (min-width: 960px) {

    body.page-id-2109 #main {
        width: calc(100% - 70px - 7.5%) !important;
        margin-left: 70px !important;
        margin-right: 7.5% !important;
        max-width: 100% !important;
    }
    
    body.page-id-2109 .container {
    margin: 0 !important;
    }

}

@media (min-width: 769px) {
/* Para que el contenedor ocupe exactamente el alto del viewport menos el header */
    /* 1. Contenedor principal con el "freno" para el inspector */
    body.page-id-2109 #content-wrap {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important; 
        /* Ajusté el clamp: ahora el "piso" es 80px para que con el inspector no quede tan abajo */
        padding-top: clamp(120px, 20vh, 200px) !important; 
        align-items: center;
        padding-bottom: 100px !important; /* Espacio de seguridad al final */
        box-sizing: border-box;
    }

    /* 2. Nivelación de las columnas */
    body.page-id-2109 .wp-block-columns {
        display: flex;
        align-items: flex-start !important; /* Clave para que Título y Cap 2 nazcan juntos */
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        margin: 0 auto !important;
        gap: 60px; /* Reducido un poco para que respire mejor */
    }

    /* 3. Columna Izquierda (Título) */
    body.page-id-2109 .wp-block-column:first-child {
        flex: 0 0 40% !important; 
        padding-right: 80px !important; /* Reducido para evitar desbordes */
        padding-left: 30px;
        border-left: 3px solid #000;
        align-self: flex-start !important; /* CAMBIADO: Antes decía center */
        z-index: 2;
    }

    /* 4. Columna Derecha (Acordeones) */
    body.page-id-2109 .wp-block-column:last-child {
        flex: 0 0 60% !important; /* Bajé a 55% para dar margen de error */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important; /* Para que el acordeón ocupe todo el ancho de su columna */
    }

    /* Sol grande pero sin romper el ancho */
    body.page-id-2109.wp-block-column:last-child img {
        opacity: 0.5 !important;
        width: 100% !important;
        max-width: 800px !important; /* Tamaño grande */
        height: auto !important;
        /* Limito el alto de la imagen al 75% del viewport para asegurar que quepa con el H2 */
        max-height: 75vh !important;
        object-fit: contain;
    }
}

/* Vista móvil */
@media (max-width: 768px) {
    
    body.page-id-2109 #content-wrap {
        min-height: calc(100vh - 70px) !important;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical */
        align-items: center;     /* Centrado horizontal */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box;
    }
    
    body.page-id-2109 main {
        margin-top: 0 !important; 
    }
    
    /* Neutralizo el padding violeta del contenedor principal */
    body.page-id-2109 #main #content-wrap {
        padding-top: 30px !important;
        padding-bottom: 60px !important;
    }
    
    /* Neutralizo el margen predeterminado para el content-area */
    body.page-id-2109 .content-area {
        margin-bottom: 0 !important;
        float: none !important;
    }
    
    /* Neutralizo la variable var de espacio heredada para esta página */
    body.page-id-2109 {
        --espacio-fijo: 0px !important;
    }
    
    /* Estructura de la columna de texto */
    body.page-id-2109 .wp-block-column:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Línea superior: aparece ahora con 30px de aire arriba y abajo) */
    body.page-id-2109 .wp-block-column:first-child::before {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* 30px del header */
        margin-bottom: 30px !important; /* 30px del H2 */
    }

    /* Línea inferior */
    body.page-id-2109 .wp-block-column:first-child::after {
        content: "";
        display: block;
        width: 96%;
        height: 3px;
        background-color: #000;
        margin-top: 30px !important;    /* Mantiene 30px con el texto para simetría */
        margin-bottom: 30px !important; /* REDUCIDO: se acerca al fondo del navegador */
    }

    /* 3. Ajuste milimétrico de títulos y párrafos */
    body.page-id-2109 h2 {
        text-align: center !important;
        width: 100%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding-bottom: 30px !important; /* 30px exactos hacia el párrafo */
        line-height: 1.2;
    }

    body.page-id-2109 p {
        text-align: center !important;
        width: 100%;
        max-width: 96%;
        margin: 0 !important; /* Mato márgenes heredados */
        padding: 0 !important;
        line-height: 1.4;
    }

    body.page-id-2109 .wp-block-column:last-child {
        display: none !important;
    }
    
    /* Separación entre el párrafo y el bloque de botones en móvil */
    body.page-id-2109 .wp-block-buttons {
        margin-top: 40px !important; /* Ajustá este valor a tu gusto */
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    /* Permitimos que se vea la segunda columna en móvil */
    body.page-id-2109 .wp-block-column:last-child {
        display: block !important;
        width: 100% !important;
        /* padding: 20px !important; */
    }
    
    body.page-id-2109 p {
        text-align: left !important;
    }
    
}

/* Fondo degradado */
body.page-id-2109 {
    background: linear-gradient(180deg, #B3DEFF 0%, #DBEFFF 50%, #FFFFFF 100%) !important;
    background-attachment: fixed !important;
}

/* Forzamos transparencia para que el degradado del body sea visible */
body.page-id-2109 #main, 
body.page-id-2109 #content-wrap, 
body.page-id-2109 #primary {
    background: transparent !important;
    border: none !important;
}