/* HEADER CONTACTO (HERO) */

.contact-hero {
    padding: 140px 8% 90px;
    background: linear-gradient(
        135deg,
        var(--color-principal),
        #f1d95c
    );
    text-align: center;
}

.contact-hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    color: #111;
    font-weight: 700;
}

.contact-hero p {
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto;
    color: #333;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .contact-hero h1 { font-size: 38px; }
}

/* CONTENIDO PRINCIPAL (GRID) */

.contact-main {
    padding: 80px 8%;
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px;
    background: #fff;
    align-items: start; 
    max-width: 1400px;
    margin: 0 auto;
}

/* COLUMNA IZQ: INFORMACIÓN */

.contact-info {
    padding-top: 10px; 
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--color-titulo);
    position: relative;
    display: inline-block;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--color-principal);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(196,163,47,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item ion-icon {
    font-size: 24px;
    color: var(--color-principal);
}

.info-item span {
    display: block;
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Botón WhatsApp */
.whatsapp-btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    width: fit-content;
}

.whatsapp-btn ion-icon {
    font-size: 24px;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* --- COLUMNA DER: FORMULARIO --- */

.contact-form {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    border: 1px solid #eee;
}

.contact-form h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

/* FLOATING LABELS */

.form-group {
    position: relative;
    margin-bottom: 35px; 
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0; 
    font-size: 16px;
    color: #333;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group textarea {
    resize: none;
    height: 120px;
    padding-top: 15px; 
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-principal);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label, 
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label { 
    top: -12px;
    font-size: 13px;
    color: var(--color-principal);
    font-weight: 600;
}

.contact-form button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-principal);
    color: #000;
    padding: 16px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-form button:hover {
    background: var(--color-secundario);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(196,163,47,0.2);
}

/*  CARGANDO  */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-icon {
    animation: spin 1s linear infinite;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #555 !important; 
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .contact-main {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 60px 20px;
    }

    .contact-info {
        text-align: center; 
        order: 2;
    }

    .contact-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .info-item {
        justify-content: center; 
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .icon-box {
        margin: 0 auto;
    }

    .whatsapp-btn {
        width: 100%; 
    }
}

/* FOOTER CTA */

.contact-cta {
    padding: 100px 8%;
    text-align: center;
    background: #111;
    color: white;
    position: relative;
    border-top: 5px solid var(--color-principal);
}

.contact-cta h2 {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-cta p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: #ccc;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .contact-cta h2 { font-size: 30px; }
}