:root {
    --primary-orange: #f47c36;
    --primary-purple: #742589;
    --bg-light: #f0f0f0;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-pink-light: #fae4df;
    --docs-gray: #e6e6e6;
    --docs-lightgray: #f2f2f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-purple {
    background-color: var(--primary-purple);
    color: white;
}

.text-orange {
    color: var(--primary-orange);
}

.text-purple {
    color: var(--primary-purple);
}

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

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pill-orange {
    background-color: var(--primary-orange);
    border-radius: 50px;
    padding: 10px 30px;
    height: 35px;
    width: 120px;
}

.btn-capsule {
    background-color: var(--primary-orange);
    border-radius: 50px;
    padding: 15px 40px;
    height: 48px;
    width: 180px;
    margin-top: 15px;
}

.btn-purple-submit {
    background-color: var(--primary-purple);
    color: white;
    padding: 5px 20px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
}

/* Header */
.main-header {
    background: white;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.1;
    color: var(--primary-purple);
}

.header-logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* Hero Section */
.hero {
    background-image: url('../images/b-feria-del-credito-hipotecario-mexico.jpg');
    padding: 8vw 0;
    min-height: 450px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /* Container block layout restored by removing flex */
}

.hero .container {
    max-width: 1300px;
    /* Expands bounds so text starts further left */
    width: 95%;
}

.hero-content {
    max-width: 500px;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--primary-purple);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--primary-purple);
    margin-bottom: 40px;
    line-height: 1.4;
    font-weight: 500;
}

.btn-orange-rect {
    background-color: var(--primary-orange);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 35px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-orange-rect:hover {
    background-color: #d15610;
}

/* Hero Section Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        background-image: url('../images/m-feria-del-credito-hipotecario-mexico.jpg');
        background-position: center bottom;
        background-size: cover;
        min-height: 80vh;
        padding-top: 40px;
        padding-bottom: 0px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.4rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
}

/* Features Banner */
.features-banner {
    padding: 30px 0;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 0;
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    width: 48px;
    /* Size up circles */
    height: 48px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.feature-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.3;
    color: white;
}

/* Make dividers stack horizontally on mobile */
/* Keep items in a row on mobile like design */
@media (max-width: 900px) {
    .features-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .feature-item {
        width: 25%;
        flex-direction: column;
        justify-content: flex-start;
        border-right: 1px solid rgba(255, 255, 255, 0.4);
        border-bottom: none;
        padding-bottom: 0;
        padding: 5px;
        gap: 8px;
    }

    .feature-item:last-child {
        border-right: none;
    }

    .feature-icon {
        width: 35px;
        height: 35px;
    }

    .feature-item p {
        font-size: 0.65rem;
        text-align: center;
        line-height: 1.2;
    }
}

/* Documentos Section Layout */
.documentos-section,
.conyugal-section {
    padding: 60px 0;
}

.docs-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
    }
}

.docs-visual {
    position: relative;
    width: 45%;
    height: 300px;
}

@media (max-width: 768px) {
    .docs-visual {
        width: 100%;
        max-width: 400px;
    }
}

.rect-back,
.rect-front {
    position: absolute;
    border-radius: 10px;
}

.rect-back {
    width: 80%;
    height: 80%;
    top: 0;
    right: 0;
    background-color: #e2e2e2;
}

.rect-front {
    width: 85%;
    height: 85%;
    bottom: 0;
    left: 0;
    background-color: #efefef;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.docs-content {
    width: 50%;
}

@media (max-width: 768px) {
    .docs-content {
        width: 100%;
    }
}

.docs-title {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.docs-title span {
    color: var(--primary-orange);
}

.docs-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.main-subtitle {
    margin-bottom: 40px;
}

.docs-list {
    border-left: 2px solid #ccc;
    padding-left: 20px;
}

.docs-list.outlined-pink {
    border: none;
    border-left: 2px solid var(--bg-pink-light);
}

.docs-item {
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.docs-item.border-none {
    border-bottom: none;
    margin-bottom: 0;
}

.docs-item.active-pink {
    background-color: var(--bg-pink-light);
    padding: 15px;
    margin-left: -20px;
    border-left: 3px solid var(--primary-orange);
    border-bottom: none;
    margin-top: -15px;
}

.pb-0 {
    padding-bottom: 0 !important;
}

/* Documentos Section New Layout */
.documentos-section.new-docs {
    padding: 80px 0;
    background-color: white;
}

.new-docs .main-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.docs-split {
    display: flex;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {

    .new-docs .main-title,
    .conyugal-section .main-title {
        font-size: 1.4rem !important;
    }

    .conyugal-section .docs-subtitle {
        font-size: 1rem !important;
    }

    .docs-split {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .docs-img-side {
        flex: 0 0 calc(45% - 7.5px);
    }

    .docs-list-side {
        flex: 0 0 calc(55% - 7.5px);
    }

    .docs-img-placeholder,
    .docs-img-placeholder1 {
        height: 250px !important;
    }

    .check-list li {
        font-size: 0.75rem;
        margin-bottom: 12px;
        gap: 8px;
    }

    .check-icon svg {
        width: 16px;
        height: 16px;
    }
}

.docs-img-side {
    flex: 1;
}

.docs-img-placeholder {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    background-image: url('../images/documentos-para-credito.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.docs-img-placeholder1 {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    background-image: url('../images/credito-conyugal.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.docs-list-side {
    flex: 1;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.4;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* Event Section New Layout */
.event-section {
    padding: 60px 0;
    position: relative;
    background-color: #fcfcfc;
    text-align: center;
    overflow: hidden;
}

.event-section:before {
    content: "";
    /* Placeholder for background image */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use faint gradient to simulate picture if no stock photo present */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
    z-index: 0;
}

.section-title {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.event-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../images/fechas-ferias-del-credito-en-todo-mexico.jpg');
    background-size: cover;
    background-position: center;
}

.relative-container {
    position: relative;
    z-index: 2;
}

.event-info-new {
    margin-bottom: 40px;
}

.event-info-new .city {
    font-size: 1.1rem;
    font-weight: 500;
}

.event-info-new .dates {
    font-size: 1rem;
    font-weight: 500;
}

.orange-divider {
    width: 40px;
    height: 3px;
    background-color: var(--primary-orange);
    margin: 10px auto 0;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 30px;
    max-width: 800px;
}

.nav-arrow {
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    font-weight: 300;
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex: 1;
}

.countdown-box {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    width: 200px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .countdown-boxes {
        gap: 10px;
    }

    .countdown-box {
        width: 100px;
        height: 100px;
        padding: 10px;
    }

    .countdown-box .number {
        font-size: 2rem !important;
        margin-bottom: 2px !important;
    }

    .countdown-box .label {
        font-size: 0.6rem !important;
    }
}

.countdown-box .number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-box .label {
    font-size: 1rem;
    font-weight: 700;
}

.box-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
}

.dot.active {
    background-color: #999;
}

/* Gallery Section New Layout */
/* Estilos generales para asegurar que las imágenes no se deformen */
.gallery-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* Opcional: para que se vea más moderno */
}

/* Comportamiento para Móviles */
@media (max-width: 768px) {
    .gallery-row {
        display: flex;
        /* Alinea las imágenes en una fila */
        overflow-x: auto;
        /* Activa el scroll horizontal */
        scroll-snap-type: x mandatory;
        /* Hace que las imágenes "salten" al centro al scrollear */
        gap: 15px;
        /* Espacio entre imágenes */
        padding-bottom: 15px;
        /* Espacio para que no se pegue al borde inferior */
        scrollbar-width: none;
        /* Oculta la barra en Firefox */
    }

    .gallery-row::-webkit-scrollbar {
        display: none;
        /* Oculta la barra en Chrome/Safari */
    }

    .gallery-img-box {
        flex: 0 0 85%;
        /* Define que cada imagen ocupe el 85% del ancho de la pantalla */
        scroll-snap-align: center;
        /* Centra la imagen al terminar el scroll */
    }
}

/* Comportamiento para Escritorio (mantiene tu diseño original) */
@media (min-width: 769px) {
    .gallery-row {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .gallery-img-box {
        flex: 1;
        /* Distribuye las imágenes equitativamente */
    }
}

.bg-img1 {
    background-color: #e0d6e5;
}

.bg-img2 {
    background-color: #c4d6e5;
}

.bg-img3 {
    background-color: #e4e6c5;
}

/* Sponsors Section New Layout */
.sponsors-section.new-sponsors {
    padding: 50px 0;
    background-color: #f7f7f7;
}

.top-sponsors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

@media (max-width: 768px) {
    .top-sponsors {
        flex-direction: column;
        gap: 20px;
    }
}

.sponsors-title {
    text-align: center;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 20px;
}

.sponsors-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .logos-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}

.sponsor-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

.text-red {
    color: #d32f2f;
}

.text-blue {
    color: #1976d2;
}

.sponsors-divider {
    width: 1px;
    height: 60px;
    background-color: #ccc;
}

@media (max-width: 768px) {
    .sponsors-divider {
        width: 100px;
        height: 1px;
    }
}

/* Contact Form New Layout */
.contact-section.new-contact {
    padding: 80px 0;
    background-color: white;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-split {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .contact-split {
        flex-direction: column;
    }
}

.contact-form-side {
    flex: 1;
}

.clean-form .form-row-2 {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .clean-form .form-row-2 {
        flex-direction: column;
    }
}

.clean-form .form-row {
    margin-bottom: 20px;
}

.clean-form input,
.clean-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background-color: #f4f4f4;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
}

.clean-form input::placeholder,
.clean-form textarea::placeholder {
    color: #666;
}

.form-actions-left {
    text-align: left;
    margin-top: 30px;
}

.btn-submit-large {
    background-color: var(--primary-orange);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.contact-img-side {
    flex: 0 0 40%;
    display: flex;
}

@media (max-width: 768px) {
    .contact-img-side {
        height: 300px;
    }
}

.contact-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: #e0d6e5;
    background-image: url('../images/formulario-feria-del-credito.jpg');
    background-size: cover;
    background-position: center;
}

/* Update Conyugal Specifics */
.update-conyugal .text-dark {
    color: #444;
}

.update-conyugal .docs-layout {
    gap: 80px;
    justify-content: center;
}

@media (max-width: 768px) {
    .update-conyugal .docs-layout {
        gap: 40px;
    }
}

.update-conyugal .outlined-pink {
    border-left: 1px solid #fadcd4 !important;
    padding-left: 0 !important;
}

.update-conyugal .docs-item {
    font-size: 0.95rem;
    padding-left: 25px;
    padding-bottom: 25px;
    padding-top: 25px;
    margin-bottom: 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.update-conyugal .active-pink {
    background-color: #fcebe6;
    border-left: 4px solid var(--primary-orange);
    padding-left: 21px;
    margin-left: -2px;
}

.update-conyugal .docs-visual {
    width: 450px;
    height: 320px;
    position: relative;
    margin-bottom: -50px;
}

@media (max-width: 768px) {
    .update-conyugal .docs-visual {
        width: 100%;
        height: 250px;
        margin-bottom: 0;
    }
}