/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Default GeneratePress child theme
Author: Notaría Fácil
Author URI: https://notariafacil.cl
Template: generatepress
Version: 0.1
*/
:root {
    /* Colors */
    --primary: #2563EB;
    --primary-alt: #1D4ED8;
    --bg-light: #ffffff;
    --text-main: #111827;
    --text-sec: #4B5563;
    --success: #16A34A;

    /* Typography Sizes */
    --h1-size: 1.75rem;
    --h1-size-desktop: 2.25rem;
    --h2-size: 1.5rem;
    --h2-size-desktop: 1.875rem;
    --h3-size: 1.125rem;
    --h3-size-desktop: 1.25rem;
    --body-size: 0.875rem;
    --body-size-desktop: 1rem;
}

body,
.site {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    font-size: var(--body-size);
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
    body {
        font-size: var(--body-size-desktop);
    }
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 700 !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: var(--h1-size) !important;
    font-weight: 800 !important;
}

@media (min-width: 1024px) {
    h1 {
        font-size: var(--h1-size-desktop) !important;
    }
}

h2 {
    font-size: var(--h2-size) !important;
}

@media (min-width: 1024px) {
    h2 {
        font-size: var(--h2-size-desktop) !important;
    }
}

h3 {
    font-size: var(--h3-size) !important;
}

@media (min-width: 1024px) {
    h3 {
        font-size: var(--h3-size-desktop) !important;
    }
}

/* Global Components */

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card-notaria {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F3F4F6;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Buttons Styling */
.button,
.wp-block-button__link,
a.gb-text {
    background-color: var(--primary);
    color: #FFFFFF;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border: none;
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
}

.button:hover,
.wp-block-button__link:hover,
a.gb-text:hover {
    background-color: var(--primary-alt) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #FFFFFF !important;
}

/* Utils */
.text-sec {
    color: var(--text-sec);
}

.bg-white {
    background-color: #FFFFFF;
}

.background-celeste {
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
}

.background-gris-suave {
    background-color: #f9fafb;
}

/* Footer Custom Styling */
.site-footer,
.footer-widgets,
.site-info {
    background-color: #111827 !important;
    /* Gray-900 */
    color: #9CA3AF !important;
    /* Gray-400 */
    font-size: 14px;
}

.site-footer h2.widget-title,
.site-footer h3.widget-title {
    color: #FFFFFF !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer a {
    color: #9CA3AF !important;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.site-footer a:hover {
    color: #FFFFFF !important;
}

/* Social Icons Circles */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #1F2937;
    /* Gray-800 */
    border-radius: 50%;
    color: #FFFFFF !important;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
}

/* Gutenberg Social Icons in Footer */
.site-footer .wp-block-social-links .wp-social-link,
.site-footer .wp-block-social-links .wp-social-link a {
    background-color: transparent !important;
    color: #FFFFFF !important;
    transition: transform 0.3s ease !important;
}

.site-footer .wp-block-social-links .wp-social-link svg {
    fill: #FFFFFF !important;
    width: 24px !important;
    height: 24px !important;
}

.site-footer .wp-block-social-links .wp-social-link:hover {
    transform: translateY(-3px);
    color: var(--primary) !important;
}

.site-footer .wp-block-social-links .wp-social-link:hover svg {
    fill: var(--primary) !important;
}

/* Header Menu Shadow, Sticky and Reduced Height */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header .inside-header {
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Center menu styling */
.center-menu .menu {
    justify-content: center;
    display: flex;
}

.center-menu {
    width: 100%;
}

/* Header layout — SOLO DESKTOP */
@media (min-width: 1024px) {
    .inside-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-branding {
        order: 1;
    }

    .header-widget {
        order: 2;
        flex: 1;
        text-align: center;
    }

    .main-navigation {
        order: 3;
        float: none;
    }
}

/* Make the center menu horizontal */
.header-widget .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-widget .menu li {
    margin: 0 15px;
}

.header-widget .menu a {
    text-decoration: none;
}

@media (min-width: 1024px) {
    .header-widget .menu {
        display: flex;
        justify-content: center;
    }
}


@media (min-width: 1024px) {
    #site-navigation .menu-item-centro {
        display: none !important;
    }
}

/* ===== MOBILE HEADER: Solo logo + hamburguesa ===== */
@media (max-width: 768px) {

    /* Ocultar el widget del centro en mobile */
    .header-widget {
        display: none !important;
    }

    /* Ocultar navegación cuando está cerrada */
    #site-navigation:not(.toggled) {
        display: none !important;
    }

    /* Mostrar navegación cuando se abre */
    #site-navigation.toggled {
        display: block !important;
        padding-bottom: 15px;
    }

    /* Mostrar botón hamburguesa */
    .mobile-menu-control-wrapper {
        display: flex !important;
    }
}




.center-navigation .center-menu {
    justify-content: center;
}

/* Paragraph Width Utilities */
.parrafo-max-50 {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.parrafo-max-70 {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.parrafo-max-80 {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.parrafo-max-90 {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjeta de Trámite */
.card-tramite {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #f3f4f6 !important;
    padding: 2rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.card-tramite:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px) !important;
}

/* Contenedor del Icono */
.card-tramite .icon-box {
    width: 64px !important;
    height: 64px !important;
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem !important;
    transition: all 0.3s ease !important;
}

/* Efecto Hover en el Icono */
.card-tramite:hover .icon-box {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

/* Tamaño del SVG interno */
.card-tramite .icon-box svg {
    width: 32px !important;
    height: 32px !important;
}

.footer-social a:hover {
    background-color: var(--primary);
}

/* Utilidad: padding lateral 90px desktop / 10px mobile */
.pad-lateral {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .pad-lateral {
        padding-left: 90px !important;
        padding-right: 90px !important;
    }
}


.pad-lateral-30 {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .pad-lateral-30 {
        padding-left: 120px !important;
        padding-right: 120px !important;
    }
}


/* Site Title color */
.main-title a,
.main-title {
    color: #2563eb !important;
}



/* 1. El contenedor de la imagen */
.image-hover-overlay {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    /* Bordes redondeados según tu diseño */
    cursor: pointer;
}

/* 2. La imagen dentro del bloque */
.image-hover-overlay img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s ease;
    /* El zoom suave */
}

/* 3. La capa oscura (Overlay) */
.image-hover-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 4. El texto central */
.image-hover-overlay::after {
    content: "COMPLETAR PLANTILLA";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #ffffff;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Zoom a la imagen */
.image-hover-overlay:hover img {
    transform: scale(1.1);
}

/* Mostrar capa y texto */
.image-hover-overlay:hover::before,
.image-hover-overlay:hover::after {
    opacity: 1;
}

/* Variante 1: Descargar Plantilla */
.image-hover-overlay.descargar::after {
    content: "DESCARGAR PLANTILLA";
}

/* Variante 2: Sin Texto (solo la capa gris y el zoom) */
.image-hover-overlay.sin-texto::after {
    display: none !important;
}



.heading-medium .kb-table-of-contents-title {
    font-weight: 600;
}