/* ==============================================
   CONTACTO.CSS - Estilos para la página de contacto
   Sigue la línea premium y profesional del sitio
   ============================================== */

   :root {
    --primary: #0D2340;      /* Azul más oscuro y sofisticado */
    --primary-light: #1C3F6E; /* Variación más clara para gradientes */
    --secondary: #1E75D9;    /* Azul secundario más vibrante */
    --secondary-light: #3A8BE8; /* Variación más clara del azul secundario */
    --accent: #FF8C1A;       /* Naranja más vibrante para CTA */
    --accent-hover: #F07200; /* Naranja más oscuro para hover */
    --light: #F9FBFD;        /* Blanco ligeramente azulado */
    --dark: #121820;         /* Negro azulado sofisticado */
    --gray: #5A6A7F;         /* Gris con tinte azul para textos secundarios */
    --light-gray: #EDF1F7;   /* Gris muy claro para fondos */
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Transición más elegante */
    --shadow-sm: 0 10px 20px rgba(13, 35, 64, 0.06);
    --shadow-md: 0 20px 40px rgba(13, 35, 64, 0.1);
    --shadow-lg: 0 30px 60px rgba(13, 35, 64, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 24px;
}

/* Banner de contacto premium */
.contacto-banner {
    height: 50vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px; /* Espacio para el header fijo */
}

.contacto-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.pexels.com/photos/3183150/pexels-photo-3183150.jpeg') center/cover no-repeat;
    filter: saturate(1.1);
    z-index: 1;
}

.contacto-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 35, 64, 0.85), rgba(30, 117, 217, 0.8));
    z-index: 2;
}

.contacto-banner-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.contacto-banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    display: inline-block;
}

.contacto-banner-content h1::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    bottom: -15px;
    left: 0;
    border-radius: 50px;
}

.contacto-banner-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
}

/* Contenedor principal de la sección de contacto */
.contacto-main {
    padding: 6rem 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.contacto-main::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 117, 217, 0.05) 0%, rgba(30, 117, 217, 0) 70%);
    top: -300px;
    right: -200px;
    border-radius: 50%;
    z-index: 1;
}

.contacto-main::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 140, 26, 0.05) 0%, rgba(255, 140, 26, 0) 70%);
    bottom: -250px;
    left: -200px;
    border-radius: 50%;
    z-index: 1;
}

.contacto-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* Panel lateral de información de contacto */
.contacto-sidebar {
    flex: 0 0 400px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 3.5rem;
    border-radius: var(--border-radius-lg);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.contacto-sidebar::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -50px;
    z-index: 1;
}

.contacto-sidebar::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -100px;
    left: -100px;
    z-index: 1;
}

.contacto-sidebar-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.contacto-sidebar-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    bottom: -12px;
    left: 0;
    border-radius: 50px;
}

.contacto-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.contacto-info-item {
    display: flex;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contacto-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
}

.contacto-info-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    top: 0;
    left: 0;
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.contacto-info-item:hover .contacto-info-icon {
    background-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contacto-info-icon i {
    font-size: 1.4rem;
    color: white;
}

.contacto-info-content {
    flex-grow: 1;
}

.contacto-info-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.contacto-info-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contacto-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.contacto-social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contacto-social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Estilo especial para el botón de WhatsApp */
.contacto-whatsapp-link {
    width: 40px;
    height: 40px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    margin-left: 0.5rem; /* Separación adicional */
}

.contacto-whatsapp-link:hover {
    background-color: #20BA5C;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Contenedor del formulario */
.contacto-form-wrapper {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contacto-form-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    top: 0;
    left: 0;
}

.contacto-form-header {
    margin-bottom: 2.5rem;
}

.contacto-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contacto-form-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
}

/* Loader para el formulario */
.contacto-form-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.contacto-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(30, 117, 217, 0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spinner 1s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.contacto-form-loader p {
    color: var(--gray);
    font-size: 1rem;
}

.contacto-form-iframe {
    border: none;
    width: 100%;
    height: 600px;
    transition: opacity 0.5s ease;
}

/* Sección del mapa */
.contacto-map-section {
    padding: 5rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.contacto-map-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, var(--light) 0%, transparent 100%);
    top: 0;
    left: 0;
    z-index: 1;
}

.contacto-map-title {
    text-align: center;
    margin-bottom: 3rem;
}

.contacto-map-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.contacto-map-heading::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
}

.contacto-map-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.contacto-map-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contacto-map-frame {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    background-color: var(--light-gray);
    border: 1px solid rgba(13, 35, 64, 0.05);
}

.contacto-map-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Botón flotante de WhatsApp (visible en móvil) */
.floating-whatsapp {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: var(--transition);
}

.floating-whatsapp i {
    font-size: 2rem;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .contacto-container {
        gap: 3rem;
    }
    
    .contacto-sidebar {
        flex: 0 0 350px;
        padding: 3rem;
    }
}

@media (max-width: 992px) {
    .contacto-banner-content h1 {
        font-size: 3rem;
    }
    
    .contacto-banner-content p {
        font-size: 1.2rem;
    }
    
    .contacto-container {
        flex-direction: column;
    }
    
    .contacto-sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 3rem;
    }
    
    .contacto-form-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .contacto-map-frame {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contacto-banner {
        height: 40vh;
        min-height: 300px;
    }
    
    .contacto-banner-content h1 {
        font-size: 2.5rem;
    }
    
    .contacto-banner-content p {
        font-size: 1.1rem;
    }
    
    .contacto-sidebar {
        padding: 2.5rem;
    }
    
    .contacto-form-wrapper {
        padding: 2.5rem;
    }
    
    .contacto-map-heading {
        font-size: 2rem;
    }
    
    .contacto-info-item {
        margin-bottom: 2rem;
    }
    
    .floating-whatsapp {
        display: flex;
    }
}

@media (max-width: 576px) {
    .contacto-container {
        padding: 0 1.5rem;
    }
    
    .contacto-banner {
        min-height: 250px;
    }
    
    .contacto-banner-content h1 {
        font-size: 2rem;
    }
    
    .contacto-banner-content p {
        font-size: 1rem;
    }
    
    .contacto-sidebar {
        padding: 2rem;
    }
    
    .contacto-sidebar-title {
        font-size: 1.6rem;
    }
    
    .contacto-info-icon {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }
    
    .contacto-info-icon i {
        font-size: 1.2rem;
    }
    
    .contacto-info-label {
        font-size: 1rem;
    }
    
    .contacto-form-wrapper {
        padding: 2rem;
    }
    
    .contacto-form-title {
        font-size: 1.8rem;
    }
    
    .contacto-map-frame {
        height: 300px;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .contacto-form-wrapper {
        background-color: rgba(255, 255, 255, 0.97);
    }
}