/* ================================================
   CSS para la página CONTACTO - Mobile First
   ================================================ */

/* Variables específicas para Contacto */
:root {
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --contacto-primary: #22c55e;
    --contacto-primary-hover: #16a34a;
    --contacto-secondary: #8b5cf6;
    --contacto-accent: #f59e0b;
    --contacto-comercial: #fef3c7;
    --contacto-comercial-border: #fbbf24;
}

/* ================================================
   BASE STYLES
   ================================================ */

.page-contacto {
    background: #f8fafc;
    min-height: 100vh;
}

.page-content {
    padding: 0;
}

/* ================================================
   HERO SECTION
   ================================================ */

.contacto-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contacto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-primary);
}

/* ================================================
   SECCIÓN PRINCIPAL
   ================================================ */

.contacto-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ================================================
   INFORMACIÓN LATERAL
   ================================================ */

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.info-card:nth-child(2) {
    animation-delay: 0.1s;
}

.info-card:nth-child(3) {
    animation-delay: 0.2s;
}

.info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--contacto-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-icon svg {
    width: 28px;
    height: 28px;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 1rem 0;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-size: 0.95rem;
    color: var(--color-gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--contacto-primary);
    font-weight: 700;
}

/* ================================================
   TARJETA DESTACADA COMERCIAL
   ================================================ */

.info-destacada {
    background: var(--contacto-comercial);
    border: 2px solid var(--contacto-comercial-border);
    position: relative;
    overflow: hidden;
}

.info-destacada::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
}

.info-icon-destacado {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.3) 100%);
    color: #d97706;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-icon-destacado svg {
    width: 28px;
    height: 28px;
}

.destacado-text {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.destacado-text strong {
    color: #92400e;
    font-weight: 600;
}

.destacado-beneficios {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.beneficio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #78350f;
    font-weight: 500;
}

.beneficio-item svg {
    width: 18px;
    height: 18px;
    color: #d97706;
    flex-shrink: 0;
}

/* ================================================
   FORMULARIO
   ================================================ */

.contacto-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

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

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

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.required {
    color: #dc2626;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-dark);
    background: white;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--contacto-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    transform: translateY(-1px);
}

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

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path fill="%2364748b" d="M7 10L2 5h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.25rem;
}

/* ================================================
   ALERTAS
   ================================================ */

.alert {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid;
    animation: fadeInUp 0.4s ease;
}

.alert svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-success {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
}

.alert-success svg {
    color: #22c55e;
}

.alert-error {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

.alert-error svg {
    color: #dc2626;
}

/* ================================================
   BOTÓN DE ENVÍO
   ================================================ */

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

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

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ================================================
   ESTADOS DE VALIDACIÓN
   ================================================ */

.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid:not([value=""]),
.form-textarea:valid:not(:placeholder-shown) {
    border-color: var(--contacto-primary);
}

/* ================================================
   ANIMACIONES
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   RESPONSIVE - TABLET (768px+)
   ================================================ */

@media (min-width: 768px) {
    .contacto-hero {
        padding: 4rem 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
        color: var(--color-primary);
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        color: var(--color-primary);
    }
    
    .contacto-section {
        padding: 4rem 2rem;
    }
    
    .contacto-container {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
    
    .contacto-form-wrapper {
        padding: 2.5rem;
    }
}

/* ================================================
   RESPONSIVE - DESKTOP (1024px+)
   ================================================ */

@media (min-width: 1024px) {
    .contacto-hero {
        padding: 5rem 2rem;
    }
    
    .contacto-container {
        grid-template-columns: 400px 1fr;
        gap: 4rem;
    }
    
    .info-card {
        padding: 2.5rem;
    }
    
    .contacto-form-wrapper {
        padding: 3rem;
    }
}

/* ================================================
   ACCESIBILIDAD
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   MEJORAS PARA DISPOSITIVOS TÁCTILES
   ================================================ */

@media (hover: none) {
    .info-card:hover,
    .btn-submit:hover {
        transform: none;
    }
    
    .info-card:active {
        transform: scale(0.98);
    }
    
    .btn-submit:active {
        transform: scale(0.95);
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        transform: none;
    }
}