/* ==========================================
   CONTACT-STYLES.CSS - ESTILOS ESPECÍFICOS PARA CONTACTO.HTML
   Diseño profesional basado en referencia "Get in Touch"
   ========================================== */

/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* Variables específicas para contacto */
:root {
    --contact-primary: #f4c430;
    --contact-primary-dark: #e6b023;
    --contact-secondary: #1a2332;
    --contact-success: #10b981;
    --contact-error: #ef4444;
    --contact-warning: #f59e0b;
    
    /* Grises específicos */
    --contact-gray-50: #f9fafb;
    --contact-gray-100: #f3f4f6;
    --contact-gray-200: #e5e7eb;
    --contact-gray-300: #d1d5db;
    --contact-gray-400: #9ca3af;
    --contact-gray-500: #6b7280;
    --contact-gray-600: #4b5563;
    --contact-gray-700: #374151;
    --contact-gray-800: #1f2937;
    --contact-gray-900: #111827;
    
    /* Sombras y efectos */
    --contact-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --contact-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --contact-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
    --contact-radius: 16px;
    --contact-radius-lg: 24px;
    --contact-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   HERO SECTION MEJORADO (Solo para .contact-hero)
   FONDO COMPLETAMENTE ESTÁTICO
   ========================================== */
.contact-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--contact-secondary) 0%, #2d3748 100%);
    background-attachment: scroll !important; /* Forzar scroll normal */
}

.contact-hero .hero-background {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-attachment: scroll !important; /* Forzar scroll normal */
    transform: none !important; /* Remover cualquier transform */
}

.contact-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    position: absolute !important; /* Asegurar absolute */
    top: 0;
    left: 0;
    background-attachment: scroll !important; /* Forzar scroll normal */
    transform: none !important; /* Remover cualquier transform */
    animation: none !important; /* Remover cualquier animación */
    transition: none !important; /* Remover transiciones */
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(45, 55, 72, 0.6) 100%);
    z-index: 2;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.contact-hero .breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    opacity: 0.9;
}

.contact-hero .breadcrumbs a {
    color: var(--contact-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-hero .breadcrumbs a:hover {
    opacity: 0.8;
}

.contact-hero .breadcrumbs i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.contact-hero .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-hero .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
}

.contact-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.contact-hero .stat {
    text-align: center;
}

.contact-hero .stat-icon {
    font-size: 2rem;
    color: var(--contact-primary);
    margin-bottom: 8px;
}

.contact-hero .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ==========================================
   SECCIÓN PRINCIPAL DE CONTACTO - ESTILO PROFESIONAL
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 100%);
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* ==========================================
   GET IN TOUCH - COLUMNA IZQUIERDA
   ========================================== */
.contact-info-container {
    background: white;
    padding: 60px 40px;
    border-radius: var(--contact-radius-lg);
    box-shadow: var(--contact-shadow-lg);
    border: 1px solid var(--contact-gray-100);
    position: relative;
    overflow: hidden;
}

.contact-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
}

.contact-info-header {
    margin-bottom: 40px;
    text-align: left;
}

.contact-info-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--contact-gray-900);
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-info-header p {
    font-size: 1.1rem;
    color: var(--contact-gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Información de contacto estilo referencia */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: var(--contact-transition);
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--contact-gray-800);
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.2);
}

.contact-details h4 {
    font-weight: 700;
    color: var(--contact-gray-900);
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

.contact-details p {
    color: var(--contact-gray-600);
    line-height: 1.5;
    margin: 0;
    font-size: 15px;
}

/* Horarios especiales */
.business-hours {
    background: var(--contact-gray-50);
    padding: 24px;
    border-radius: var(--contact-radius);
    border-left: 4px solid var(--contact-primary);
    margin-top: 32px;
}

.business-hours h4 {
    color: var(--contact-gray-900);
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-hours p {
    color: var(--contact-gray-700);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================
   SEND US A MESSAGE - COLUMNA DERECHA
   ========================================== */
.contact-form-container {
    background: white;
    padding: 60px 40px;
    border-radius: var(--contact-radius-lg);
    box-shadow: var(--contact-shadow-lg);
    border: 1px solid var(--contact-gray-100);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--contact-success) 0%, #059669 100%);
}

.contact-form-header {
    margin-bottom: 40px;
    text-align: left;
}

.contact-form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--contact-gray-900);
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-form-header p {
    font-size: 1.1rem;
    color: var(--contact-gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Formulario mejorado */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--contact-gray-800);
    font-size: 15px;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid var(--contact-gray-200);
    border-radius: var(--contact-radius);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--contact-transition);
    background: var(--contact-gray-50);
    color: var(--contact-gray-800);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--contact-success);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--contact-gray-400);
}

/* Error states */
.form-group.error input,
.form-group.error textarea {
    border-color: var(--contact-error);
    background: #fef2f2;
}

.error-message {
    color: var(--contact-error);
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Botón de envío */
.submit-btn {
    background: linear-gradient(135deg, var(--contact-success) 0%, #059669 100%);
    color: white;
    padding: 18px 32px;
    border: none;
    border-radius: var(--contact-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--contact-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--contact-gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mensaje de éxito */
.success-message {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #065f46;
    padding: 24px;
    border-radius: var(--contact-radius);
    text-align: center;
    display: none;
    border: 2px solid var(--contact-success);
    margin-top: 20px;
}

.success-message.show {
    display: block;
    animation: slideInUp 0.5s ease-out;
}

.success-message i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--contact-success);
}

.success-message h3 {
    margin-bottom: 8px;
    color: #065f46;
}

/* ==========================================
   WHATSAPP CTA MEJORADO
   ========================================== */
.whatsapp-cta {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    padding: 40px;
    border-radius: var(--contact-radius-lg);
    text-align: center;
    border: 2px solid #22c55e;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.whatsapp-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.whatsapp-cta h3 {
    color: #15803d;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.whatsapp-cta p {
    color: #166534;
    margin-bottom: 24px;
    font-size: 15px;
    position: relative;
    z-index: 2;
}

.whatsapp-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25d366;
    color: white;
    padding: 18px 36px;
    border-radius: var(--contact-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--contact-transition);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    position: relative;
    z-index: 2;
}

.whatsapp-btn-large:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-btn-large i {
    font-size: 20px;
}

/* ==========================================
   MAPA MEJORADO
   ========================================== */
.map-container {
    margin-top: 40px;
}

.map-container h3 {
    color: var(--contact-gray-900);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.map-embed {
    border-radius: var(--contact-radius-lg);
    overflow: hidden;
    box-shadow: var(--contact-shadow);
    border: 1px solid var(--contact-gray-200);
    transition: var(--contact-transition);
}

.map-embed:hover {
    box-shadow: var(--contact-shadow-lg);
    transform: translateY(-4px);
}

.map-embed iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-form-container,
.contact-info-container {
    animation: fadeInScale 0.8s ease-out;
}

.contact-item {
    animation: slideInUp 0.6s ease-out;
}

.contact-item:nth-child(2) { animation-delay: 0.1s; }
.contact-item:nth-child(3) { animation-delay: 0.2s; }
.contact-item:nth-child(4) { animation-delay: 0.3s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* LAPTOP (1024px - 1200px) */
@media (max-width: 1200px) {
    .contact-grid {
        gap: 60px;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 48px 32px;
    }
}

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-grid {
        gap: 50px;
    }
    
    .contact-info-header h2,
    .contact-form-header h2 {
        font-size: 2.2rem;
    }
}

/* TABLET PEQUEÑA Y MÓVIL GRANDE (481px - 768px) */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .contact-hero .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .contact-hero .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    .contact-hero .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 32px 24px;
    }
    
    .contact-info-header h2,
    .contact-form-header h2 {
        font-size: 2rem;
    }
    
    .contact-info-container {
        order: -1; /* Mostrar info antes que formulario en móvil */
    }
    
    .contact-item {
        flex-direction: row;
        text-align: left;
    }
    
    .whatsapp-cta {
        padding: 32px 24px;
    }
}

/* MÓVIL (320px - 480px) */
@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-hero {
        height: 45vh;
        min-height: 300px;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 24px 20px;
    }
    
    .contact-info-header h2,
    .contact-form-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
    }
    
    .submit-btn {
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .whatsapp-cta {
        padding: 24px 20px;
    }
    
    .whatsapp-btn-large {
        padding: 16px 28px;
        font-size: 15px;
    }
}