/* Contact section - ancho y estilo moderno */
.contact-section {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto 100px;
    padding: 0 24px;
    text-align: center;
}

.contact-section-title {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 800;
    color: #373667;
    margin: 0 0 16px 0;
    letter-spacing: -0.8px;
    line-height: 1.15;
}

.contact-section-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: #4d6697;
    margin: 0 0 48px 0;
    line-height: 1.6;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-wrap {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 251, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 44px 52px;
    text-align: left;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(102, 126, 234, 0.06);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    overflow: hidden;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    opacity: 0.9;
}

.contact-form-wrap:hover {
    box-shadow: 0 32px 80px rgba(102, 126, 234, 0.12), 0 0 0 1px rgba(102, 126, 234, 0.1);
}

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

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 14px;
    font-weight: 700;
    color: #373667;
    letter-spacing: 0.03em;
}

.contact-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    color: #373667;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.12);
    border-radius: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

.contact-input:hover {
    border-color: rgba(102, 126, 234, 0.25);
}

.contact-input::placeholder {
    color: #7b7a9e;
}

.contact-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.18);
}

.contact-textarea {
    min-height: 160px;
    resize: vertical;
    padding: 18px 20px;
}

.contact-error {
    font-size: 13px;
    color: #c53030;
    margin-top: 2px;
    font-weight: 600;
}

.contact-success {
    font-size: 16px;
    color: #276749;
    background: rgba(39, 103, 73, 0.12);
    padding: 16px 20px;
    border-radius: 14px;
    margin: 0;
    font-weight: 600;
    border: 1px solid rgba(39, 103, 73, 0.2);
}

.contact-submit-wrap {
    margin-top: 12px;
    padding-top: 8px;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #292866 0%, #373667 50%, #667eea 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(41, 40, 102, 0.3);
    transition: background-position 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.02em;
}

.contact-submit:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.35);
}

.contact-submit:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .contact-form-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-section {
        max-width: 100%;
        margin-bottom: 72px;
        padding: 0 20px;
    }

    .contact-form-wrap {
        padding: 36px 24px 40px;
        border-radius: 20px;
    }

    .contact-form {
        gap: 22px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-form-row-3 {
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .contact-section-title {
        font-size: 28px;
    }

    .contact-section-subtitle {
        font-size: 16px;
        margin-bottom: 36px;
    }

    .contact-form-wrap {
        padding: 28px 20px 32px;
        border-radius: 18px;
    }

    .contact-form-wrap::before {
        height: 2px;
    }

    .contact-input {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 12px;
    }

    .contact-textarea {
        min-height: 140px;
        padding: 16px 18px;
    }

    .contact-submit {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 12px;
    }
}
