/* ===== CONTACTANOS CSS (FULL RESPONSIVE – SIN OVERFLOW) ===== */
* {
    box-sizing: border-box;
    font-family: var(--font-primary);
}

/* ---- HERO ---- */
.contact-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: calc(var(--header-height)) 0 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.3);
    transition: transform 20s ease
}

.specialties-hero-section:hover .hero-image {
    transform: scale(1.05)
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 45, 58, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto
}

.hero-text {
    color: #fff;
    animation: fadeInUp 1s ease-out
}

.hero-tag {
    display: inline-block;
    background: rgba(242, 45, 58, 0.2);
    border: 1px solid rgba(242, 45, 58, 0.4);
    border-radius: 30px;
    padding: 8px 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px)
}

.hero-tag span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .95)
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2
}

.title-line {
    display: block
}

.title-highlight {
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    position: relative
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9)
}

/* ---- TARJETAS INFORMACIÓN ---- */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: .5rem;
    text-align: center;
    color: var(--3x3_mexico-text);
    animation: fadeInUp .8s ease-out
}

.section-subtitle {
    text-align: center;
    color: var(--3x3_mexico-text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

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

.contact-card {
    background: var(--3x3_mexico-background);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transition: transform .25s, box-shadow .25s
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12)
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: var(--3x3_mexico-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--3x3_mexico-primary)
}

.contact-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--3x3_mexico-text)
}

.contact-card-text {
    color: var(--3x3_mexico-text-light);
    margin-bottom: 1rem;
    line-height: 1.5
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--3x3_mexico-primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap .25s
}

.contact-card-link:hover {
    gap: .75rem;
    text-decoration: underline
}

/* ---- BOTONES DE NAVEGACIÓN ---- */
.navigation-buttons {
    margin-top: 3rem
}

.nav-button-group {
    background: var(--3x3_mexico-background);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08)
}

.nav-button-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: .5rem;
    text-align: center;
    color: var(--3x3_mexico-text)
}

.nav-button-subtitle {
    text-align: center;
    color: var(--3x3_mexico-text-light);
    margin-bottom: 2rem
}

.nav-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--3x3_mexico-light);
    border-radius: .5rem;
    text-decoration: none;
    color: var(--3x3_mexico-text);
    transition: all .25s;
    border: 2px solid transparent
}

.nav-button:hover {
    background: var(--3x3_mexico-accent);
    border-color: var(--3x3_mexico-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08)
}

.nav-button-icon {
    width: 50px;
    height: 50px;
    background: var(--3x3_mexico-primary);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0
}

.nav-button-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: .25rem;
    color: var(--3x3_mexico-text)
}

.nav-button-content p {
    font-size: .9rem;
    color: var(--3x3_mexico-text-light);
    line-height: 1.4
}

.nav-button-arrow {
    color: var(--3x3_mexico-primary);
    font-size: 1.2rem
}

/* ---- FORMULARIO ---- */
.contact-form-section {
    background: var(--3x3_mexico-light);
    padding: 4rem 0
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    background: var(--3x3_mexico-background);
    border-radius: 1rem;
    padding: clamp(1rem, 5vw, 2.5rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.form-intro-header {
    margin-bottom: 2rem
}

.form-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--3x3_mexico-text);
    line-height: 1.2
}

.form-subtitle {
    color: var(--3x3_mexico-text-light);
    font-size: 1.1rem;
    line-height: 1.6
}

.form-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--3x3_mexico-accent);
    border-radius: .5rem;
    border-left: 4px solid var(--3x3_mexico-primary)
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--3x3_mexico-text);
    font-weight: 500
}

.benefit-item i {
    color: var(--3x3_mexico-primary);
    font-size: 1.2rem;
    width: 24px
}

.form-security {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--3x3_mexico-light);
    border-radius: .5rem;
    border-left: 4px solid var(--3x3_mexico-success);
    transition: transform .25s, box-shadow .25s
}

.form-security:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08)
}

.form-security i {
    font-size: 2.2rem;
    color: var(--3x3_mexico-success);
    margin-top: 2px
}

.form-security h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .25rem;
    color: var(--3x3_mexico-text)
}

.form-security p {
    font-size: .9rem;
    color: var(--3x3_mexico-text-light);
    line-height: 1.5
}

.form-container {
    background: var(--3x3_mexico-light);
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    width: 100%;
    overflow: hidden;
    /* Evita que el reCAPTCHA sobresalga */
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--3x3_mexico-text);
    font-size: .95rem;
}

label i {
    color: var(--3x3_mexico-primary);
    width: 20px;
    font-size: 1rem
}

.form-input {
    width: 100%;
    max-width: 100%;
    padding: .9rem 1rem;
    border: 2px solid var(--3x3_mexico-border);
    border-radius: .5rem;
    font-size: 1rem;
    transition: border-color .25s, box-shadow .25s;
    background: var(--3x3_mexico-background);
    color: var(--3x3_mexico-text);
}

.form-input:hover {
    border-color: var(--3x3_mexico-primary-light)
}

.form-input:focus {
    outline: 0;
    border-color: var(--3x3_mexico-primary);
    box-shadow: 0 0 0 4px rgba(242, 45, 58, .1)
}

.form-input.error {
    border-color: var(--3x3_mexico-warning);
    background: #fff9e6
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23f22d3a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    padding-right: 2.5rem;
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--3x3_mexico-primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
    font-size: .95rem;
    cursor: pointer;
    line-height: 1.5
}

.checkbox-group a {
    color: var(--3x3_mexico-primary);
    text-decoration: none;
    font-weight: 600
}

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

.error-message {
    color: var(--3x3_mexico-warning);
    font-size: .85rem;
    margin-top: .25rem;
    display: none;
    font-weight: 500
}

.btn-submit {
    position: relative;
    overflow: hidden;
    background: var(--3x3_mexico-primary);
    color: #fff;
    border: 0;
    border-radius: .5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s, transform .25s, box-shadow .25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    max-width: 100%;
}

.btn-submit:hover:not(:disabled) {
    background: var(--3x3_mexico-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 45, 58, .35)
}

.btn-submit:focus {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(242, 45, 58, .3)
}

.btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed
}

.btn-submit i {
    font-size: 1.2rem;
    transition: transform .25s
}

.btn-submit:hover i {
    transform: translateX(4px)
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--3x3_mexico-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem;
    background: var(--3x3_mexico-accent);
    border-radius: .25rem;
}

.form-note i {
    color: var(--3x3_mexico-info)
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    margin-top: 1rem;
    display: none;
    animation: slideInUp .4s ease;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: var(--3x3_mexico-success);
    color: #fff;
    border: 1px solid #1e7e34
}

.form-message.error {
    background: var(--3x3_mexico-warning);
    color: #fff;
    border: 1px solid #d39e00
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.fa-spinner {
    animation: spin 1s linear infinite
}

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

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

/* RECAPTCHA RESPONSIVE */
.g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 380px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1199px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-buttons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .form-container {
        padding: 1.25rem;
    }

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

    .btn-submit {
        font-size: 1rem;
        padding: .9rem 1.5rem;
    }

    .nav-button {
        flex-direction: column;
        text-align: center;
    }

    .nav-button-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

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

    .form-container {
        padding: 1rem;
    }

    .form-security {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-security i {
        margin-bottom: .5rem;
    }

    .checkbox-group {
        align-items: flex-start;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.contact-card-link:focus,
.nav-button:focus,
.btn:focus,
.form-input:focus {
    outline: 3px solid var(--3x3_mexico-primary);
    outline-offset: 3px;
}