/* ==========================================================================
   1. RESET Y ESTILOS GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0;
}

html {
    scroll-padding-top: 60px;
    scroll-behavior: smooth;
}

/* ==========================================================================
     2. CONTENEDORES Y ESTRUCTURA
     ========================================================================== */
.container {
    width: 83%;
    max-width: 1200px;
    margin: 50px auto 100px auto;
    /* 50px de separación desde la cabecera */
}

/* --------------------------------------------------------------------------
     Top Bar
  -------------------------------------------------------------------------- */
.top-bar {
    position: fixed;
    top: -70px;
    /* Oculta la barra inicialmente */
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #fff;
    z-index: 1000;
    transition: top 0.3s ease;
    /* Animación suave */
}

.top-bar.show {
    top: 0;
    /* Muestra la barra cuando tiene la clase 'show' */
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

/* Botón de solicitud - estado inicial sin máscara */
.btn-solicitud {
    position: fixed;
    top: 27px;
    left: 30px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    z-index: 1001;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 100px;
    /* Sin máscara inicialmente */
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Botón de solicitud - con máscara cuando se hace scroll */
.btn-solicitud.with-mask {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-solicitud:hover {
    color: #000 !important;
    font-weight: 600;
}

.btn-solicitud.with-mask:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

.btn-solicitud:active {
    color: #000 !important;
    font-weight: 600;
}

/* Navegación - estado inicial sin máscara */
.nav {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    position: fixed;
    top: 27px;
    right: 40px;
    z-index: 1001;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 100px;
    /* Sin máscara inicialmente */
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Navegación - con máscara cuando se hace scroll */
.nav.with-mask {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.nav a:first-child {
    margin-left: 0;
}

.nav a:hover {
    color: #000 !important;
    font-weight: 600;
}

.nav a:active {
    color: #000 !important;
    font-weight: 600;
}

/* Asegurar que vuelvan al estado original después del click */
.nav a:not(:hover):not(:active) {
    color: #333;
    font-weight: 500;
}

.nav a.active {
    color: #000 !important;
    font-weight: 600 !important;
}

.nav a.active:hover {
    color: #000 !important;
    font-weight: 600 !important;
}

.btn-solicitud:not(:hover):not(:active) {
    color: #333;
    font-weight: 500;
}


/* --------------------------------------------------------------------------
    Errores durante el envio de mail
  -------------------------------------------------------------------------- */
.textosError {
    background-color: #ff4444;
    color: #ffffff;
    border: 2px solid #cc0000;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.2);
    text-align: center;
}

.textosEnviado {
    background-color: #00a651;
    color: #ffffff;
    border: 2px solid #008741;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
    text-align: center;
}

/* Mejora adicional para los enlaces dentro de los banners */
.textosError a,
.textosEnviado a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.textosError a:hover,
.textosEnviado a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

/* Ajustes responsivos para los banners */
@media screen and (max-width: 576px) {

    .textosError,
    .textosEnviado {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 15px;
    }
}


/* --------------------------------------------------------------------------
     Secciones de Fondo
  -------------------------------------------------------------------------- */
.section--white {
    background-color: #ffffff;
}

.section--turquoise {
    background-color: #baf7e8;
}

.section--beige {
    background-color: #f5ecd9;
}

.section--lightblue {
    background-color: #d5e9f5;
}

/* ==========================================================================
     3. HEADER Y ELEMENTOS DINÁMICOS
     ========================================================================== */
/* Texto fijo (sticky) que aparece cuando se desplaza el header */
.sticky-text {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -20px);
    z-index: 1001;
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 0.01em;
    font-weight: 500;
    font-size: 1.15rem;
    color: #000;
    background-color: #fff;
    padding: 5px 15px;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.sticky-text a {
    pointer-events: auto;
    text-decoration: none;
    color: #000;
}

.sticky-text.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sticky-text.hiding {
    opacity: 0;
    transform: translate(-50%, -20px);
}


/* Header que se desplaza con el contenido */
.header {
    background: url('assets/Cabecera.jpg') center center/cover no-repeat;
    width: 100%;
    height: 510px;
    /* Altura fija apropiada para la imagen */
    position: relative;
    z-index: 1;
}

.header__container {
    width: 100%;
    padding: 0 20px;
    position: relative;
    height: 100%;
}

.header__texto-principal {
    position: absolute;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
}

.header__texto-principal h1 {
    font-family: 'Source Sans Pro', sans-serif;
    transform: scaleY(0.92);
    letter-spacing: 0.01em;
    font-weight: 380;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.header__texto-principal p {
    font-family: 'Source Sans Pro', sans-serif;
    transform: scaleY(0.92);
    letter-spacing: 0.01em;
    font-weight: 300;
    font-size: 1.15rem;
    width: 600px;
    color: #666;
    line-height: 1.2;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.header_porfolio {
    font-family: 'Source Sans Pro', sans-serif;
    transform: scaleY(0.92);
    letter-spacing: 0.01em;
    font-weight: 400;
    font-size: 0.8rem;
    max-width: 1200px;
    color: hsl(0, 0%, 29%);
    line-height: 1.2;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    /* Nuevas propiedades para que no interfiera con el header */
    position: absolute;
    top: 520px;
    /* Justo después del header que tiene 510px */
    left: 50%;
    transform: translateX(-50%) scaleY(0.92);
    width: 100%;
    z-index: 3;
}

/* Logotipo: tamaño original definido */
.logo {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

#servicios {
    margin-top: 80px;
}

.logo img {
    width: 260px;
    height: auto;
    margin-top: 100px;
    transform: none;
}

.logo_footer img {
    width: 260px;
    height: auto;
    transform: translateY(20px);
}

.porfolio-page .header__texto-principal {
    top: 59.5%;
    /* Ajusta este valor a tu gusto */
}

/* ==========================================================================
   Destello 
========================================================================== */
.logo-glow {
    visibility: hidden;
    position: absolute;
    top: 40px;
    /* Ajusta si tu logo está más arriba o abajo */
    left: 0;
    height: 400px;
    /* Altura de la animación del destello */
    width: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 25%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 75%);
    background-size: 200% 100%;
    opacity: 0;
    animation: glowSweep 3s ease-out 1;
}

@keyframes glowSweep {
    0% {
        background-position: 200% 0;
        opacity: 0;
        visibility: visible;
    }

    20% {
        opacity: 1;
    }

    50% {
        background-position: 0% 0;
        opacity: 1;
    }

    70% {
        background-position: 100% 0;
        opacity: 1;
    }

    100% {
        background-position: 200% 0;
        opacity: 0;
        visibility: hidden;
    }
}

/* ==========================================================================
     4. NAVEGACIÓN Y BOTONES
     ========================================================================== */
.nav {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    position: fixed;
    top: 27px;
    right: 40px;
    z-index: 1001;
}

.nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}


.porfolio-btn {
    color: #0A66C2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.oepm-btn {
    color: hsl(9, 99%, 44%);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* ==========================================================================
     5. CARDS (Inventores, Agentes, Agencias)
     ========================================================================== */
.cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: -100px;
}

.card {
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-wrap: break-word;
    padding: 2rem;
    border: none;

    /* Contenedor con bordes redondeados */
    border-radius: 32px;
    background-color: #fff;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Sombra de gradiente de arriba hacia abajo */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.02) 20%,
            rgba(0, 0, 0, 0.06) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Sombra adicional alrededor con box-shadow sutil */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Efecto hover con escala y sombra más pronunciada */
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.03) 20%,
            rgba(0, 0, 0, 0.08) 50%,
            rgba(0, 0, 0, 0.14) 100%);
}

.card h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 3.5rem;
    transform: scaleY(0.95);
    margin-bottom: 0;
    color: #333;
    text-align: center;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

.card h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    margin-top: -0.8rem;
    margin-bottom: 1rem;
    color: #00a651;
    text-align: center;
}

/* Ajuste entre h3 y el párrafo siguiente */
.card h3+p {
    margin-top: -0.5rem;
}

.card p {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
    text-align: left;
    line-height: 1.5;
}

/* Textos móviles ocultos por defecto */
.card .mobile-text {
    display: none;
}

/* Textos desktop visibles por defecto */
.card .desktop-text {
    display: block;
}

.card figure {
    position: relative;
    width: 100%;
    margin: 1rem 0;
    cursor: pointer;
}

.card figure a,
.unico__images-column figure a {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
}

.card figure img {
    width: 90%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.card .mas-info {
    margin-top: -0.5rem;
}

.card .mas-info a {
    font-weight: bold;
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.card .mas-info a:hover {
    text-decoration: none;
}

/* Orden de las cards */
.card.inventores {
    order: 1;
}

.card.agentes {
    order: 2;
    margin-left: 30px;
    margin-right: 30px;
}

.card.agencias {
    order: 3;
}

/* Efectos hover en figuras */
.card figure:hover img,
.card figure:active img {
    opacity: 0.2;
}

.card figure:hover .overlay-text,
.card figure:active .overlay-text {
    opacity: 1;
}

/* Ajuste específico para la imagen en la card de agentes */
.card.agentes figure img {
    width: 75%;
}

/* Media query para reducir títulos 20% cuando ancho <= 1262px (pero no en móvil) */
@media screen and (max-width: 1262px) and (min-width: 577px) {
    .card h2 {
        font-size: 2.8rem;
        /* 20% menos que 3.5rem */
    }
}

/* Media queries adicionales para otros tamaños intermedios */
@media screen and (max-width: 1200px) and (min-width: 1051px) {
    .card h2 {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 1050px) and (min-width: 900px) {
    .card h2 {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 899px) and (min-width: 768px) {
    .card h2 {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 767px) and (min-width: 577px) {
    .card h2 {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 1050px) and (min-width: 577px) {
    .cards {
        flex-direction: column;
        gap: 3rem;
    }

    .card {
        width: 450px;
        margin: 0 auto;
    }

    .card figure img {
        width: 63%;
    }

    .card.agentes figure img {
        width: 52.5%;
    }
}

/* ==========================================================================
   VERSIÓN MÓVIL - CARDS CON ANCHO UNIFORME Y 20PX DE SEPARACIÓN
   ========================================================================== */

/* VERSIÓN MÓVIL */
@media screen and (max-width: 576px) {
    .cards {
        margin-top: -120px;
        text-align: center;
        padding: 0 0px;
        /* Padding al contenedor = 20px de separación en los bordes */
    }

    .card {
        width: 100% !important;
        /* Todas las cards ocupan el 100% del contenedor */
        margin: 0 15px 1rem 15px !important;
        /* Solo margen inferior (1rem = 50% menos que antes) */
        padding: 1.5rem;
        border-radius: 32px;
        background-color: #fff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        /* Sombra más evidente */
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    /* Sobrescribir cualquier regla específica de las cards individuales */
    .card.inventores,
    .card.agentes,
    .card.agencias {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
        margin-left: 0 !important;
        /* Anular el margin-left de .card.agentes */
        margin-right: 0 !important;
        /* Anular el margin-right de .card.agentes */
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 32px;
        padding: 1px;
        /* Gradiente más pronunciado para sombra más evidente */
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.06) 20%,
                rgba(0, 0, 0, 0.12) 50%,
                rgba(0, 0, 0, 0.18) 100%);
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: -1;
    }

    .card:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
    }

    .card:hover::before {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.08) 20%,
                rgba(0, 0, 0, 0.14) 50%,
                rgba(0, 0, 0, 0.22) 100%);
    }

    .card h2,
    .card h3,
    .card p {
        text-align: center;
    }

    .card h3 {
        display: none;
    }

    .card h2 {
        margin-bottom: 10px;
        font-size: 3rem;
        hyphens: none;
        -webkit-hyphens: none;
        -ms-hyphens: none;
    }

    .card h2+p {
        margin-top: 0;
    }

    .card .desktop-text {
        display: none;
    }

    .card .mobile-text {
        display: block;
    }

    .card figure img {
        width: 100%;
        margin: 0 auto;
        display: block;
    }

    .card .mas-info {
        text-align: center;
    }

    .card.agentes figure img {
        width: 85%;
    }
}


/* ==========================================================================
     6. OVERLAY TEXTO EN FIGURAS
     ========================================================================== */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    color: #494949;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 70%;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
     7. SECCIONES ESPECÍFICAS
     ========================================================================== */
/* Sección Único */
#unico {
    background-color: #8AFDEB;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#unico .container {
    margin-top: 0;
    text-align: center;
}

#unico p b {
    color: #2c2c54c1;
}

#unico h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 7rem;
    margin-bottom: 0;
    color: black;
    margin-left: -4.38em;
}

#unico h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    margin-top: -49px;
    margin-left: 1.65em;
    color: black;
    line-height: 1.2;
}

#unico h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: blck;
    text-align: left;
}

#unico p {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
    text-align: left;
}

.unico__content {
    display: flex;
    margin-top: 2rem;
    align-items: center;
    gap: 50px;
    margin-left: 5.8em;
    justify-content: center;
}

.unico__images-column {
    flex-shrink: 0;
    margin-top: -10px;
}

.unico__text-column {
    width: 300px;
    flex-shrink: 0;
}

.unico__content figure img {
    width: 100%;
    height: auto;
    max-width: 350px;
    display: block;
    margin: 0 auto;
    margin-bottom: 2rem;
}

#unico article {
    margin-bottom: 2rem;
}

.unico__images-column figure {
    position: relative;
    cursor: pointer;
}

.unico__images-column figure:hover img,
.unico__images-column figure:active img {
    opacity: 0.2;
}

.unico__images-column figure:hover .overlay-text,
.unico__images-column figure:active .overlay-text {
    opacity: 1;
}

/* Sección FAQ's */
.section--white {
    background-color: #f8f8f8;
}

#faqs {
    text-align: center;
    padding: 50px 0;
}

#faqs .container {
    margin-top: 0;
    max-width: 800px;
}

#faqs h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 7rem;
    margin-bottom: 0;
    color: black;
    margin-left: -4.68em;
}

#faqs h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    margin-top: -49px;
    color: black;
    margin-bottom: 3rem;
    margin-left: -2.0em;
}

.faqs-container {
    text-align: left;
    margin-top: 2rem;
}

.faq-topic {
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 0;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    background-color: transparent;
    cursor: pointer;
    border-radius: 0;
}

.topic-header h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
    color: #5b5b5b;
}

.topic-header:hover {
    background-color: transparent;
}

.topic-header:hover h4 {
    color: #000;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.topic-content {
    display: none;
    padding: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.faq-answer {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #666;
    display: none;
    padding: 0.5rem 0;
}

.faq-question::after {
    content: '+';
    font-size: 1.em;
    margin-left: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-blog-button-container {
    display: flex;
    justify-content: left;
    margin-top: 2rem;
    margin-left: 18px;
}

.btn-faq-blog {
    background-color: #fff;
    color: #00a651;
    padding: 7.2px;
    border: 2px solid #00a651;
    border-radius: 100px;
    text-decoration: none;
    width: 220px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-align: center;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-faq-blog:hover {
    background-color: #00a651;
    color: #fff;
}

.blog-link-highlight {
    color: #00a651;
    font-weight: bold;
}

/* Sección About / sobre_mi */
.linkedin-btn {
    color: #0A66C2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.linkedin-btn:hover {
    color: #004182;
}

.sobre_mi h2 {
    margin-bottom: 1rem;
}

.sobre_mi p {
    margin-bottom: 1rem;
}

.sobre_mi ul {
    list-style: none;
}

.sobre_mi ul li {
    margin-bottom: 0.5rem;
}

.sobre_mi ul a {
    text-decoration: underline;
    color: #333;
}





/* Estilos para la sección Documentos */
#documentos {
    padding: 50px 0;
    background-color: #f5ecd9;
}

#documentos .container {
    text-align: center;
    margin-top: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

#documentos h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 7rem;
    margin-bottom: 0;
    color: black;
}

#documentos .subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    margin-top: -49px;
    color: black;
    margin-bottom: 3rem;
}

.documentos__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 500px));
    gap: 2.5rem;
    justify-content: center;
    margin-top: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.doc-card {
    padding: 2.5rem;
    border-radius: 8px;
    align-items: center;
}

.doc-card__title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    color: black;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    text-align: center;
}

.doc-card__subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: black;
    margin-bottom: 0.8em;
    text-align: center;
}

.doc-card__content {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
}

.doc-card__button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: black;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
    margin: 0 auto;
}

.doc-card__button i {
    font-size: 3.5rem;
}

.doc-card__button:hover {
    color: #00a651;
}


/* Estulos para la sección Sobre mí */
.about {
    background-color: #d5e9f5;
    padding: 50px 0;
}

.about {
    margin-top: 0;
    padding-top: 0;
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about .logo {
    display: flex;
    justify-content: center;
    margin-top: -40px;
}

.about .logo img {
    width: 300px;
    height: auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 50px;
}

.about-column {
    font-family: 'Source Sans Pro', sans-serif;
}

.about-column p {
    font-weight: 300;
    font-size: 1.1rem;
    color: #2f2f2f;
    margin-bottom: 1rem;
    line-height: 1.6;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-wrap: break-word;
}

.contact-info {
    margin-bottom: 30px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    color: #666;
}

.email {
    color: #000;
    font-weight: bold;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.blink-animation {
    animation: blink 1s ease-in-out 3;
}

/* Estilos para el blog */
#blog h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 6rem;
    color: #00a651;
    text-align: left !important;
    margin-left: -8px;
    margin-top: -60px;
}

#blog .subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    margin-top: -20px;
    color: rgb(101, 101, 101);
    text-align: left !important;
    line-height: 1.4;
}

.blog-content {
    margin-top: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.blog-intro {
    font-weight: 400;
    font-size: 1.1rem;
    color: #2f2f2f;
    margin-bottom: 1rem;
}

.blog-topics {
    margin-left: 0rem;
}

.blog-topics p {
    font-weight: 300;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

/* Entradas del blog */

.blog-entry {
    font-family: 'Source Sans Pro', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    margin-top: -60px;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #00a651;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.entry-meta {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.entry-meta span {
    margin-right: 1.5rem;
}

.entry-intro {
    font-size: 1.3rem;
    color: #2f2f2f;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h4 {
    font-size: 1.2rem;
    color: #2f2f2f;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.key-points ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.key-points li {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.tags .tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin-right: 0.5rem;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 3px;
    font-size: 0.9rem;
}

.share-links {
    margin-top: 1rem;
}

.share-links a {
    color: #00a651;
    text-decoration: none;
    margin-left: 1rem;
}

.blog-topics p a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-topics p a:hover {
    color: #00a651;
}

.back-to-top {
    text-align: right;
    margin-top: 2rem;
}

.back-to-top-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #00a651;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-to-top-button:hover {
    background-color: #008741;
}

.latest-post {
    background-color: #f0fff0;
    border: 1px solid #00a651;
    padding: 2rem;
    border-radius: 8px;
}

.latest-post .entry-title {
    color: #00a651;
}

.latest-post .entry-meta {
    color: #b9018b;
}

/* ==========================================================================
     8. FOOTER
     ========================================================================== */
.footer {
    background-color: #333;
    padding: 10px 20px;
}

.footer .container {
    padding-top: 40px;
}

.footer p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: #dcdcdc;
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.footer p:last-child {
    font-size: 0.8rem;
}

.links-container {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    margin-top: -20px;
}

.links-column {
    font-family: 'Source Sans Pro', sans-serif;
}

.links-column a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.agora {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.footer .contact-info-porfolio p {
    font-size: 1.1rem;

}

.footer .email-porfolio {
    color: #ffffff;
    font-weight: bold;
}


/* ==========================================================================
     10. GALERIA PORTFOLIO
     ========================================================================== */
/* Galería en grid: 5 columnas en pantallas grandes */
.gallery {
    display: grid;
    grid-gap: 10px;
    padding: 10px;
    grid-template-columns: repeat(4, 1fr);
}

.gallery img {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.gallery-container {
    position: relative;
}

.gallery-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 280px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

/* Loader centrado en pantalla */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.hidden {
    display: none;
}

/* Estilos para el spinner */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal para mostrar la imagen a tamaño real */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: 5% auto;
    display: inline-block;
    background: transparent;
    padding: 0;
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: none;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================================
     9. MEDIA QUERIES (RESPONSIVE)
     ========================================================================== */

@media screen and (max-width: 820px) {
    #faqs h2 {
        margin-left: 0;
        text-align: center;
    }

    #faqs h3 {
        margin-left: 0;
        text-align: center;
        line-height: 1.1;
        margin-top: -35px;
    }
}

@media screen and (max-width: 820px) {
    #unico h3 {
        font-size: 1.8rem;
        margin-left: -20px;
        margin-top: -40px;
        text-align: left;
    }

    #unico h2 {
        margin-left: -10px;
        text-align: left;

    }
}

@media screen and (max-width: 1050px) and (min-width: 577px) {
    .cards {
        flex-direction: column;
        gap: 3rem;
    }

    .card {
        width: 450px;
        margin: 0 auto;
    }

    .card figure img {
        width: 63%;
    }

    .card.agentes figure img {
        width: 52.5%;
    }
}

/* Hasta 768px */
@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .unico__imagenes {
        flex-direction: column;
    }

    .sobre_mi ul {
        padding-left: 0;
    }
}

/* Hasta 700px */
@media screen and (max-width: 700px) {
    .header__texto-principal p {
        width: 80%;
        max-width: 600px;
    }
}

/* Hasta 480px */
@media screen and (max-width: 480px) {
    .logo {
        padding-top: 80px;
    }

    .logo img {
        width: 200px;
    }
}

@media screen and (max-width: 805px) {
    .unico__content {
        flex-direction: column;
        gap: 0;
    }

    .unico__text-column {
        width: 100%;
    }

    .unico__images-column {
        display: none;
    }

    .unico__mobile-image {
        display: block;
        width: 100%;
        margin: 2rem 0;
    }

    .unico__mobile-image img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 900px) {
    .documentos__grid {
        grid-template-columns: 400px;
    }

    #documentos h2 {
        font-size: 6rem;
    }

    #documentos h3:first-of-type {
        font-size: 2.0rem;
        margin-top: -35px;
    }
}

@media screen and (max-width: 480px) {
    .documentos__grid {
        grid-template-columns: 1fr;
    }

    .documentos__grid article {
        width: 100%;
    }
}

@media screen and (max-width: 768px) and (min-width: 577px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .links-container {
        grid-template-columns: 1fr;
    }

    .sticky-text {
        display: none !important;
    }

    #unico h3 {
        font-size: 1.8rem;
        margin-left: -20px;
        margin-top: -40px;
        text-align: left;
    }

    #unico h2 {
        margin-left: -10px;
        text-align: left;

    }

    .unico__content {
        flex-direction: column;
        gap: 0;
        margin-left: 0px;
        margin-right: 20px;
    }

    .unico__text-column {
        width: 100%;
    }
}


.mobile-title,
.mobile-text {
    display: none;
}

.mobile-text-drawings {
    display: none;
}

.desktop-title,
.desktop-text {
    display: block;
}

@media screen and (max-width: 576px) {

    .gallery {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 5px;
        padding: 5px;
    }

    .gallery img {
        width: 100%;
        height: auto;
    }

    .line-divider {
        width: 50%;
        height: 2px;
        margin: 170px auto 0 auto;
        background: linear-gradient(to right,
                transparent 0%,
                rgba(68, 170, 68, 0.2) 10%,
                #44aa44 20%,
                #44aa44 80%,
                rgba(68, 170, 68, 0.2) 90%,
                transparent 100%);
        filter: blur(0.02px);
        box-shadow: 0 0 6px rgba(68, 170, 68, 0.2);
    }

    .mobile-title {
        display: block;
        font-family: 'Source Sans Pro', sans-serif;
        transform: scaleY(0.92);
        letter-spacing: 0.01em;
        font-weight: 380;
        font-size: 2.0rem !important;
        margin-top: 65px !important;
        /* 30px por debajo del logotipo */
        margin-bottom: 10px !important;
        /* 40px por encima del texto */
        line-height: 1;
    }

    .desktop-title,
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
        font-family: 'Source Sans Pro', sans-serif;
        transform: scaleY(0.92);
        letter-spacing: 0.01em;
        font-weight: 300;
        font-size: 0.85rem;
        width: 97%;
        color: #666 !important;
        line-height: 1.5 !important;
        text-align: center;
    }

    .mobile-text-drawings {
        display: block;
        font-family: 'Source Sans Pro', sans-serif;
        transform: scaleY(0.92);
        letter-spacing: 0.01em;
        font-weight: 300;
        font-size: 0.85rem;
        width: 90%;
        color: #666;
        line-height: 1.2;
        margin: -8px auto 0;
        text-align: center;
    }

    .nav {
        display: none;
    }

    .logo {
        padding-top: 35px;
        order: 1;
    }



    .sticky-text {
        display: none !important;
    }

    .topic-header h4 {
        font-size: 1.35rem;
        text-align: left;
    }

    #unico article {
        margin-bottom: 3.5rem;
    }

    #unico article:last-child {
        margin-bottom: 1rem;
    }

    #unico {
        text-align: center;
    }

    #unico h2 {
        font-size: 4rem;
        margin-left: 0;
        text-align: center;
    }

    #unico h3 {
        font-size: 1.5rem;
        margin-left: 0;
        margin-top: -15px;
        margin-bottom: 50px;
        line-height: 1.2;
        text-align: center;
    }

    #unico h4 {
        text-align: center;
    }

    #unico p {
        text-align: center;
    }

    .unico__content {
        margin-left: 0;
    }

    .unico__images-column {
        display: none;
    }

    /* Ajustes para la sección FAQs */
    #faqs h2 {
        font-size: 4rem;
        margin-left: 0;
        text-align: center;
    }

    #faqs h3 {
        font-size: 1.5rem;
        margin-left: 0;
        margin-top: -15px;
        text-align: center;
        line-height: 1.2;
    }

    .faq-item {
        margin-bottom: 0.5rem;
    }

    .faq-question {
        text-align: center;
        padding: 0.3rem 0;
        margin-bottom: 0.3rem;
    }

    .faq-answer {
        text-align: center;
        padding: 0.3rem 0;
    }

    .faq-blog-button-container {
        margin-top: 1.5rem;
    }

    #documentos h2 {
        font-size: 3.8rem;
        text-align: center !important;
        margin-left: -6px;
        width: 100%;
    }


    #documentos .container {
        width: 100%;
        padding: 0 20px;
    }

    #documentos h3:first-of-type {
        font-size: 1.3rem;
        margin-top: -30px;
    }

    .documentos__grid {
        padding: 0;
        margin-top: 1.5rem;
    }

    .documentos__grid {
        gap: 0.5rem;
    }

    .doc-card {
        text-align: center;
        padding: 1.3rem;
    }

    .doc-card__title {
        text-align: center;
        font-size: 1.65rem;
    }

    .doc-card__subtitle {
        text-align: center;
    }

    .doc-card__content {
        text-align: center;
    }

    .links-container {
        flex-direction: column;
        gap: 10px;
    }

    .links-column {
        width: 100%;
        margin-top: 40px;
    }

    .links-column a {
        text-align: center;
        margin-bottom: 0.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;

    }

    .about-column {
        width: 100%;
    }

    .about-column p {
        text-align: justify;
    }

    .contact-info {
        text-align: center;
    }

    .footer .contact-info-porfolio p {
        text-align: center;

    }

    .footer p {
        text-align: center;
        margin-top: 40px;
    }

    .blog-content {
        text-align: center;
    }

    .header__texto-principal {
        order: 2;
    }

    .blog-topics {
        margin-left: 0;
    }

    .header {
        background: none !important;
        /* Anula la imagen de fondo */
        background-color: #ffffff !important;
        /* Fondo blanco, por ejemplo */
        height: 400px;
    }
}

/* En pantalla extragrande (min-width: 1600px): 5 imágenes por fila */
@media (min-width: 1600px) {
    .gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* En pantalla grande (entre 1200px y 1599px): 4 imágenes por fila */
@media (max-width: 1599px) and (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* En pantalla normal (entre 768px y 1199px): 3 imágenes por fila */
@media (max-width: 1199px) and (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* En tablet (entre 480px y 767px): 2 imágenes por fila */
@media (max-width: 767px) and (min-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .header {
        height: 400px;
        /* Altura menor en móviles */
    }
}


/* ==========================================================================
     SECCIÓN DE CONTACTO
     ========================================================================== */

.contact-section {
    background-color: #2c3e50;
    color: white;
    padding: 80px 0;
}

.contact-section .container {
    margin-top: 0;
    margin-bottom: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-left h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-info-left>p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #ecf0f1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 15px;
}

.contact-item i {
    color: #00a651;
    font-size: 1.2rem;
    margin-top: 2px;
    width: 20px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item span {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    color: #ecf0f1;
    line-height: 1.4;
}

.contact-item span:first-child {
    font-weight: 400;
    color: white;
}

.meeting-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

.meeting-link p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.meeting-link a {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    color: #00a651;
    text-decoration: none;
    font-weight: 500;
}

.meeting-link a:hover {
    color: #00c962;
    text-decoration: underline;
}

/* Formulario */
.contact-form {
    background-color: #34495e;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #4a5568;
    border-radius: 4px;
    background-color: #2d3748;
    color: white;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a651;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.checkbox-group label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: #ecf0f1;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group label a {
    color: #00a651;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.contact-submit-btn {
    width: 100%;
    background-color: #00a651;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-submit-btn:hover {
    background-color: #008741;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-left h2 {
        font-size: 2rem;
        text-align: center;
    }

    .contact-info-left>p {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .meeting-link {
        text-align: center;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .contact-section {
        padding: 50px 0;
    }

    .contact-info-left h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .btn-solicitud {
        position: fixed !important;
        left: 50% !important;
        top: 25px !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        /* Mantener la máscara en móvil con borde negro */
        background-color: rgba(255, 255, 255, 0.9);
        padding: 8px 16px;
        border-radius: 100px;
        border: 1px solid #000;
        /* NUEVO: Borde negro */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* ==========================================================================
     MODAL DE AVISO IMPORTANTE
     ========================================================================== */

.notice-modal {
    display: block;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.notice-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: noticeModalFadeIn 0.3s ease-out;
}

.notice-modal-body {
    padding: 40px;
    text-align: center;
}

.notice-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.notice-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.notice-text .oepm-btn {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.notice-text .oepm-btn:hover {
    color: #000;
    text-decoration: underline;
}

.notice-modal-footer {
    padding: 0px 10px 30px;
    text-align: center;
}

.notice-accept-btn {
    background-color: #00a651;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.notice-accept-btn:hover {
    background-color: #008741;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 167, 81, 0.3);
}

.notice-accept-btn:active {
    transform: translateY(0);
}

/* Animación de entrada */
@keyframes noticeModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de salida */
.notice-modal.fade-out {
    animation: noticeModalFadeOut 0.3s ease-in forwards;
}

@keyframes noticeModalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Responsive para móviles */
@media screen and (max-width: 576px) {
    .notice-modal-content {
        padding: 30px 25px;
    }

    .notice-modal-body {
        padding: 25px 20px;
    }

    .notice-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .notice-text {
        font-size: 1rem;
    }

    .notice-modal-footer {
        padding: 5px 25px 30px;
    }

    .notice-accept-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
     SOLICITUD DE PRESUPUESTO
========================================================================== */

.form-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.form-intro h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1rem;
}

.form-intro p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.form-messages {
    margin-bottom: 2rem;
}

.presupuesto-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Títulos de sección fuera de los recuadros */
.section-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #00a651;
    margin-bottom: 0.8rem;
    margin-top: 2rem;
    text-align: left;
}

.section-title:first-of-type {
    margin-top: 0;
}

.form-section {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #fafafa;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label,
.form-group .main-question {
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Corregir color de texto en campos del formulario */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
    color: #333 !important;
    /* Color de texto negro */
}

/* Asegurar que el texto del placeholder también sea visible */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888 !important;
    opacity: 1;
}

/* Para los campos select, asegurar que las opciones sean visibles */
.form-group select option {
    color: #333 !important;
    background-color: #fff !important;
}

/* Cuando el campo está enfocado */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a651;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
    color: #333 !important;
}

/* Para campos deshabilitados o readonly */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    color: #666 !important;
    background-color: #f5f5f5 !important;
}

/* Asegurar que los textos de ayuda sean visibles */
.field-help {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: #666 !important;
    margin-top: 0.3rem;
    font-style: italic;
}

.radio-group {
    border: none;
    padding: 0;
    margin: 0;
}

.radio-group legend {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.8rem;
    background: none;
    padding: 0;
}

/* Estilos para radio buttons actualizados */
.radio-options {
    margin-top: 0.5rem;
}

.radio-option {
    margin-bottom: 0.8rem;
}

.radio-option:last-child {
    margin-bottom: 0;
}

.radio-option input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0;
}

/* Asegurar visibilidad de texto en radio buttons */
.radio-option label {
    display: inline;
    margin-bottom: 0;
    cursor: pointer;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #333 !important;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

/* Asegurar visibilidad de texto en checkboxes */
.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333 !important;
}

.checkbox-group label a {
    color: #00a651;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.checkbox-group .field-help {
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0;
}

.submit-btn {
    width: 100%;
    background-color: #00a651;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 2rem;
}

.submit-btn:hover {
    background-color: #008741;
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.3);
}

/* Forzar color en todos los inputs del formulario */
input,
textarea,
select {
    color: #333 !important;
}

/* Eliminar espacio entre proceso-info y about */
#proceso-info {
    margin-bottom: 0;
    padding-bottom: 50px;
}

#proceso-info+.about {
    margin-top: 0;
    padding-top: 0;
}

#proceso-info+.about .container {
    margin-top: 0;
    padding-top: 20px;
}

/* Sección de información del proceso */
#proceso-info h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 3rem;
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.proceso-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #00a651;
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.step p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.info-adicional {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 8px;
}

.info-adicional h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.info-adicional ul {
    list-style: none;
    padding: 0;
}

.info-adicional li {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-adicional li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00a651;
    font-weight: bold;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }

    .form-intro h2 {
        font-size: 1.8rem;
    }

    .form-intro p {
        font-size: 1rem;
    }

    #proceso-info h2 {
        font-size: 2rem;
    }

    .proceso-steps {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 576px) {
    .form-section {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 5px;
    }

    .checkbox-group input[type="checkbox"] {
        margin-top: 0;
    }

    .section-title {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
}

.contact-section .checkbox-group label {
    color: rgb(186, 186, 186) !important;
    font-size: 1rem !important;
}