/* ================================
   SECCIÓN CONTACTO - PÁGINA PRINCIPAL
   ================================ */

.contact-section {
    padding: 4rem 0 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.contact-section::before {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: calc(100% - 4rem);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, #3979ff, #60a5fa);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.section-title .highlight {
    color: #60a5fa;
    position: relative;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

/* Información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(71, 85, 105, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-item.phone .contact-icon {
    background: #10b981;
    color: white;
}

.contact-item.whatsapp .contact-icon {
    background: #25d366;
    color: white;
}

.contact-item.email .contact-icon {
    background: #3b82f6;
    color: white;
}

.contact-item.address .contact-icon {
    background: #ef4444;
    color: white;
}

.contact-item.hours .contact-icon {
    background: #8b5cf6;
    color: white;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.contact-details p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.contact-details p + p {
    margin-top: 0.25rem;
}

/* Formulario de contacto */
.contact-form-container {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(57, 121, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #f1f5f9;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
    opacity: 0.9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(51, 65, 85, 0.9);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #334155;
    color: #f1f5f9;
    padding: 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
    line-height: 1.5;
}

.submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-note {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* Respuesta del formulario */
.form-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInUp 0.3s ease;
}

.form-response.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.form-response.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.form-response.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

/* Contenedores para elementos lado a lado */
.contact-support-container,
.contact-address-container {
    display: flex;
    gap: 1rem;
}

.contact-support-item,
.contact-address-item {
    flex: 1;
    min-width: 0; /* Permite que el texto se ajuste */
}

/* ================================
   MEDIA QUERIES RESPONSIVAS
   ================================ */

/* Media Query para tablets en orientación portrait */
@media (min-width: 641px) and (max-width: 768px) and (orientation: portrait) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form-container {
        max-height: none;
        overflow-y: visible;
    }
}

/* Media Query para tablets en orientación landscape */
@media (min-width: 641px) and (max-width: 768px) and (orientation: landscape) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form-container {
        order: 2;
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Media Query para tablets y móviles grandes (max-width: 768px) */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.5rem;
        width: calc(100% - 3rem);
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }

    .section-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 3rem;
    }

    .contact-form-container {
        padding: 2rem;
        border-radius: 12px;
    }

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

    .contact-item {
        padding: 0.8rem 1rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .contact-details h3 {
        font-size: 1rem;
    }

    .contact-details p {
        font-size: 0.85rem;
    }
}

/* Media Query para móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .contact-section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
        width: calc(100% - 2rem);
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
        margin-bottom: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .section-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .contact-content {
        gap: 2.5rem;
        margin-top: 2.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .form-row {
        gap: 1rem;
    }

    .form-group {
        gap: 0.4rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 80px;
        max-height: 150px;
    }

    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }

    .contact-item {
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }

    .contact-details h3 {
        font-size: 0.95rem;
    }

    .contact-details p {
        font-size: 0.8rem;
    }

    .contact-support-container,
    .contact-address-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .form-note {
        font-size: 0.75rem;
        margin-top: 0.6rem;
    }
}

/* Media Query para pantallas muy pequeñas (max-width: 360px) */
@media (max-width: 360px) {
    .contact-section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 0.8rem;
        width: calc(100% - 1.6rem);
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .section-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .contact-content {
        gap: 2rem;
        margin-top: 2rem;
    }

    .contact-form-container {
        padding: 1.2rem;
        border-radius: 8px;
    }

    .form-row {
        gap: 0.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }

    .form-group textarea {
        min-height: 70px;
        max-height: 120px;
    }

    .submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .contact-item {
        padding: 0.5rem 0.6rem;
        border-radius: 6px;
    }

    .contact-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .contact-details h3 {
        font-size: 0.9rem;
    }

    .contact-details p {
        font-size: 0.75rem;
    }

    .form-note {
        font-size: 0.7rem;
    }
}

/* Media Query para pantallas ultra pequeñas (max-width: 280px) */
@media (max-width: 280px) {
    .contact-section {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 0.6rem;
        width: calc(100% - 1.2rem);
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .section-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .contact-content {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .contact-form-container {
        padding: 1rem;
        border-radius: 6px;
    }

    .form-row {
        gap: 0.6rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .submit-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .contact-item {
        padding: 0.4rem 0.5rem;
    }

    .contact-icon {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .contact-details h3 {
        font-size: 0.85rem;
    }

    .contact-details p {
        font-size: 0.7rem;
    }
}
