/* ===================================== */
/* ===== SECCIÓN CONTÁCTENOS ===== */
/* ===================================== */

.dv-contact {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 140px auto;
    padding: 40px 20px;
}

/* CONTENEDOR PRINCIPAL */
.dv-contact-container {
    position: relative;
}

/* ===== ENCABEZADO ===== */
.dv-contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.dv-contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.dv-contact-title span {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dv-contact-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== WRAPPER (FORMULARIO + INFO) ===== */
.dv-contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== FORMULARIO ===== */
.dv-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== GRUPOS DE FORMULARIO ===== */
.dv-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* LABELS */
.dv-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dv-required {
    color: #00d4ff;
}

/* ===== INPUTS ===== */
.dv-input,
.dv-textarea,
.dv-select {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    outline: none;
}

.dv-input::placeholder,
.dv-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* FOCUS STATES */
.dv-input:focus,
.dv-textarea:focus,
.dv-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* SELECT ESPECIAL */
.dv-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300d4ff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    appearance: none;
}

.dv-select option {
    background: #0a1f3f;
    color: #fff;
}

/* TEXTAREA */
.dv-textarea {
    resize: vertical;
    min-height: 140px;
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Segoe UI', sans-serif;
}

/* CONTADOR DE CARACTERES */
.dv-char-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    margin-top: 4px;
}

/* ERRORES */
.dv-error {
    font-size: 0.85rem;
    color: #ff6b6b;
    display: none;
    margin-top: 4px;
    animation: slideDown 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dv-error.show {
    display: block;
}

/* MENSAJES DE ESTADO */
.dv-form-message {
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    animation: slideDown 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dv-form-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.dv-form-message.error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* ===== BOTÓN DE ENVÍO ===== */
.dv-form-actions {
    margin-top: 10px;
}

.dv-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 14px 32px;

    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;

    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);

    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.dv-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.dv-btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.dv-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* LOADER */
.spinner {
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
}

.path {
    stroke: #fff;
    stroke-linecap: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dashoffset: 60; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -60; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== INFORMACIÓN DE CONTACTO ===== */
.dv-contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dv-info-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dv-info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(4px);
}

.dv-info-icon {
    font-size: 1.8rem;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-info-content h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dv-info-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.dv-info-content a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dv-info-content a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* ===================================== */
/* ===== RESPONSIVE ===== */
/* ===================================== */

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
    .dv-contact-title {
        font-size: 2.5rem;
    }

    .dv-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dv-contact-info {
        flex-direction: row;
        gap: 20px;
    }

    .dv-info-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .dv-info-icon {
        min-width: auto;
        justify-content: center;
    }
}

/* MÓVIL (< 768px) */
@media (max-width: 768px) {
    .dv-contact {
        margin: 100px auto;
        padding: 20px 16px;
    }

    .dv-contact-header {
        margin-bottom: 40px;
    }

    .dv-contact-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .dv-contact-subtitle {
        font-size: 1rem;
    }

    .dv-form-group {
        gap: 6px;
    }

    .dv-label {
        font-size: 0.85rem;
    }

    .dv-input,
    .dv-textarea,
    .dv-select {
        padding: 12px 14px;
        font-size: 16px; /* Evita zoom en iOS */
    }

    .dv-textarea {
        min-height: 120px;
    }

    .dv-btn-submit {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .dv-contact-info {
        flex-direction: column;
        gap: 16px;
    }

    .dv-info-item {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }

    .dv-info-content h2 {
        font-size: 0.85rem;
    }

    .dv-info-content p {
        font-size: 0.8rem;
    }
}

/* EXTRA PEQUEÑO (< 480px) */
@media (max-width: 480px) {
    .dv-contact {
        margin: 80px auto;
        padding: 16px 12px;
    }

    .dv-contact-title {
        font-size: 1.5rem;
    }

    .dv-contact-subtitle {
        font-size: 0.95rem;
    }

    .dv-input,
    .dv-textarea,
    .dv-select {
        padding: 10px 12px;
        border-radius: 6px;
    }

    .dv-btn-submit {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
