/* ========== CONTACTO SECTION ========== */
.contacto {
    width: 100%;
    background: linear-gradient(135deg, var(--light-100) 0%, var(--light-200) 100%);
}

.contacto-wrapper {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 3.5rem var(--spacing-md);
}

@media (min-width: 768px) {
    .contacto-wrapper {
        padding: 4rem 0;
        max-width: 690px;
    }
}

@media (min-width: 1024px) {
    .contacto-wrapper {
        max-width: 1060px;
        padding: 4.5rem 1.2rem;
    }
}

@media (min-width: 1280px) {
    .contacto-wrapper {
        max-width: 1080px;
    }
}

/* ========== TÍTULO ========== */
.contacto__title-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
}

@media (min-width: 768px) {
    .contacto__title-header {
        gap: 2rem;
    }
}

.contacto__line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--primary) 30%,
        var(--secondary) 70%,
        transparent 100%
    );
}

@media (min-width: 768px) {
    .contacto__line {
        max-width: 150px;
    }
}

.contacto__pretitle {
    display: inline-block;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .contacto__pretitle {
        font-size: 2.15rem;
    }
}

.contacto__subtitle {
    color: var(--dark-700);
    font-size: 0.95rem;
    margin-top: 0rem;
    font-weight: 300;
    width: 90%;
    margin: 0 auto;
    padding: 0.4rem 0rem 2.1rem 0rem;
}

@media (min-width: 768px) {
    .contacto__subtitle {
        font-size: 1.05rem;
        width: 75%;
        padding-bottom: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .contacto__subtitle {
        width: 65%;
    }
}

.contacto__title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== GRID PRINCIPAL ========== */
.contacto__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
}

@media (min-width: 1024px) {
    .contacto__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ========== FORMULARIO ========== */
.contacto__form-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .contacto__form-container {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .contacto__form-container {
        padding: 2rem;
    }
}

.contacto__form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-900);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .contacto__form-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

.contacto__form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-900);
}

.form-label i {
    color: var(--primary);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-300);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light-100);
}

.form-input,
.form-select,
.form-textarea{
    @media (min-width: 1024px) {
        margin-bottom: 0.5rem;
    }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-enviar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    margin-top: 0.3rem;
}

.btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-enviar i {
    font-size: 1.1rem;
}

/* ========== INFO CONTAINER ========== */
.contacto__info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ========== INFO CARDS (más compactas) ========== */
.contacto__info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .contacto__info-cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .contacto__info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.info-card {
    background: white;
    padding: 1.2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    font-size: 1.3rem;
    color: white;
}

.info-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-900);
    margin: 0 0 0.4rem 0;
}

.info-card__text {
    font-size: 0.9rem;
    color: var(--dark-700);
    margin: 0;
}

.info-card__link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-card__link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ========== MAPA (más compacto) ========== */
.contacto__mapa {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contacto__mapa-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-900);
    margin: 0 0 0.8rem 0;
    text-align: center;
}

/* ========== PESTAÑAS DE MAPA ========== */
.mapa-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mapa-tab {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: var(--light-200);
    border: 2px solid var(--light-300);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-700);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .mapa-tab {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }
}

.mapa-tab i {
    font-size: 1rem;
}

.mapa-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mapa-tab--active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.mapa-tab--active:hover {
    color: white;
}

.mapa-container {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

@media (min-width: 768px) {
    .mapa-container {
        height: 220px;
    }
}

.contacto__mapa-text {
    font-size: 0.85rem;
    color: var(--dark-700);
    text-align: center;
    margin: 0;
}