﻿/* =========================================================
   CONTACTO - DISEÑO CLARO Y CÁLIDO
   ========================================================= */

#contacto {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 120px 0;
    background: linear-gradient(135deg, #F5F1E8 0%, #FAF8F4 50%, #F0EBE3 100%);
    overflow: hidden;
}

    #contacto::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%, rgba(232, 180, 97, 0.08), transparent 40%), radial-gradient(circle at 80% 70%, rgba(91, 155, 213, 0.05), transparent 35%);
        pointer-events: none;
    }

.contacto-inner {
    width: min(1300px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ==================== LADO IZQUIERDO ==================== */
.contacto-copy {
    padding-right: 40px;
}

.contacto-kicker-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.contacto-kicker-dash {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E8A361, transparent);
}

.contacto-kicker-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #E8A361;
}

.contacto-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: #2C2416;
    margin: 0 0 24px;
}

    .contacto-title strong {
        font-weight: 800;
        background: linear-gradient(135deg, #E8A361, #D89451);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.contacto-desc {
    font-size: 1rem;
    color: #6B6555;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* ==================== CHIPS ==================== */
.contacto-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.contacto-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(232, 163, 97, 0.15);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2C2416;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

    .contacto-chip:hover {
        background: #FFFFFF;
        border-color: rgba(232, 163, 97, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(232, 163, 97, 0.1);
    }

    .contacto-chip svg {
        width: 20px;
        height: 20px;
        color: #E8A361;
        flex-shrink: 0;
    }

/* ==================== CONTACTO DIRECTO ==================== */
.contacto-direct {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 248, 244, 0.8));
    border: 2px solid rgba(232, 163, 97, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(8px);
}

.contacto-direct-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6B6555;
    margin-bottom: 12px;
}

.contacto-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25D366, #1EBE5A);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 0px rgba(18, 150, 78, 0.3), 0 8px 20px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

    .contacto-wa-link:hover {
        background: linear-gradient(135deg, #1EBE5A, #18A34F);
        transform: translateY(-3px);
        box-shadow: 0 6px 0px rgba(18, 150, 78, 0.4), 0 12px 28px rgba(37, 211, 102, 0.3);
    }

    .contacto-wa-link svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

/* ==================== FORMULARIO ==================== */
.contacto-form-wrap {
    position: relative;
}

.contacto-form-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(44, 36, 22, 0.08), 0 2px 8px rgba(44, 36, 22, 0.04);
    border: 2px solid rgba(232, 163, 97, 0.1);
    position: relative;
    z-index: 2;
}

.contacto-form-header {
    margin-bottom: 32px;
    text-align: center;
}

    .contacto-form-header h3 {
        font-size: 1.6rem;
        font-weight: 800;
        color: #2C2416;
        margin: 0 0 8px;
    }

    .contacto-form-header p {
        font-size: 0.9rem;
        color: #6B6555;
        margin: 0;
    }

/* ==================== CAMPOS ==================== */
.contacto-row {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.contacto-row--2 {
    grid-template-columns: 1fr 1fr;
}

.contacto-field {
    margin-bottom: 20px;
}

    .contacto-field label {
        display: block;
        font-size: 0.85rem;
        font-weight: 700;
        color: #2C2416;
        margin-bottom: 8px;
    }

        .contacto-field label span {
            color: #E8A361;
        }

    .contacto-field input,
    .contacto-field textarea,
    .contacto-field select {
        width: 100%;
        padding: 14px 16px;
        background: linear-gradient(135deg, #FAFAF8, #F5F1E8);
        border: 2px solid #EDE8DC;
        border-radius: 12px;
        font-size: 0.95rem;
        color: #2C2416;
        transition: all 0.3s ease;
        font-family: inherit;
    }

        .contacto-field input:focus,
        .contacto-field textarea:focus,
        .contacto-field select:focus {
            outline: none;
            border-color: #E8A361;
            background: #FFFFFF;
            box-shadow: 0 0 0 4px rgba(232, 163, 97, 0.1);
        }

        .contacto-field input::placeholder,
        .contacto-field textarea::placeholder {
            color: #A8A39A;
        }

    .contacto-field textarea {
        resize: vertical;
        min-height: 120px;
    }

/* Select personalizado */
.contacto-select-wrap {
    position: relative;
}

.contacto-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #E8A361;
    pointer-events: none;
}

.contacto-field select {
    appearance: none;
    cursor: pointer;
    padding-right: 44px;
}

/* ==================== BOTÓN SUBMIT ==================== */
.contacto-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #25D366, #1EBE5A);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 0px rgba(18, 150, 78, 0.3), 0 8px 20px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
    margin-top: 8px;
}

    .contacto-submit:hover {
        background: linear-gradient(135deg, #1EBE5A, #18A34F);
        transform: translateY(-3px);
        box-shadow: 0 6px 0px rgba(18, 150, 78, 0.4), 0 12px 28px rgba(37, 211, 102, 0.3);
    }

    .contacto-submit:active {
        transform: translateY(1px);
        box-shadow: 0 2px 0px rgba(18, 150, 78, 0.3), 0 4px 12px rgba(37, 211, 102, 0.15);
    }

.contacto-submit-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .contacto-submit-text svg {
        width: 20px;
        height: 20px;
    }

/* ==================== MENSAJE ÉXITO ==================== */
.contacto-success {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border: 2px solid #81C784;
    border-radius: 16px;
    margin-top: 24px;
}

    .contacto-success svg {
        width: 32px;
        height: 32px;
        color: #2E7D32;
        flex-shrink: 0;
    }

    .contacto-success strong {
        display: block;
        font-size: 1rem;
        font-weight: 800;
        color: #1B5E20;
        margin-bottom: 4px;
    }

    .contacto-success span {
        display: block;
        font-size: 0.88rem;
        color: #2E7D32;
    }

/* ==================== DECORACIÓN ==================== */
.contacto-deco-dots {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, rgba(232, 163, 97, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contacto-copy {
        padding-right: 0;
        text-align: center;
    }

    .contacto-chips {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .contacto-direct {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #contacto {
        padding: 80px 0;
    }

    .contacto-title {
        font-size: 2rem;
    }

    .contacto-chips {
        grid-template-columns: 1fr;
    }

    .contacto-form-card {
        padding: 30px 24px;
    }

    .contacto-row--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contacto-title {
        font-size: 1.7rem;
    }

    .contacto-form-card {
        padding: 24px 18px;
    }

    .contacto-chip {
        font-size: 0.8rem;
        padding: 10px 14px;
    }
}
