/* ============================================
   CONTACTANOS.CSS
   Página de Contacto
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.hero-contactanos {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
    padding: 35px 20px;
    text-align: center;
    border-bottom: 3px solid var(--green-light);
}

.hero-contactanos .hero-content h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
}

/* ============================================
   SECCIÓN 1: DATOS DE CONTACTO
   ============================================ */
.section-contact-data {
    padding: 60px 20px;
    background: var(--white);
}

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

.contact-data-label {
    color: var(--green-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.contact-data-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 700;
}

/* CARDS CONTACTO */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: var(--white);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--green-dark);
    box-shadow: 0 8px 24px rgba(35, 92, 61, 0.15);
    transform: translateY(-5px);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: var(--green-light);
    transform: scale(1.1);
}

.contact-card-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.contact-card h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.contact-card .address-link {
    color: var(--text-light) !important;
    text-decoration: none;
}

.contact-card .address-link:visited {
    color: var(--text-light) !important;
}

.contact-card .address-link:hover {
    color: var(--text-light) !important;
    text-decoration: underline;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SECCIÓN 2: FORMULARIO + IMAGEN
   ============================================ */
.section-contact-form {
    padding: 60px 20px;
    background: var(--bg-light);
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* FORMULARIO */
.form-wrapper h2 {
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.form-wrapper p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FORM ROW (para nombre y apellidos lado a lado) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* FORM GROUP */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(108, 169, 118, 0.1);
}

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

/* MENSAJES DE ERROR */
.error-message {
    color: #d32f2f;
    font-size: 0.8rem;
    min-height: 18px;
    display: block;
    margin-top: -5px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #d32f2f;
    background: rgba(211, 47, 47, 0.05);
}

/* BOTÓN SUBMIT */
.btn-submit {
    background: var(--green-dark);
    color: var(--white);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--green-light);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(35, 92, 61, 0.3);
}

.btn-submit:active {
    transform: translateX(2px);
}

/* IMAGEN */
.form-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .contact-data-header h2 {
        font-size: 1.5rem;
    }

    .form-wrapper h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-contactanos .hero-content h1 {
        font-size: 2rem;
    }

    .section-contact-data {
        padding: 40px 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .form-wrapper h2 {
        font-size: 1.3rem;
    }

    .contact-form {
        gap: 15px;
    }

    .btn-submit {
        width: 100%;
        text-align: center;
    }
}