/**
 * ORETANA LOGÍSTICA - Página Contacto
 * Estilos para la página de contacto
 */

/* ==========================================
   BOTONES - Sin subrayado
   ========================================== */
[class*="btn-"],
[class*="btn-"]:hover,
[class*="btn-"]:focus,
[class*="btn-"]:active {
  text-decoration: none !important;
}

/* ==========================================
   HERO - CONTACTO
   ========================================== */
.contacto-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 60px;
    background: var(--color-gray-50);
    overflow: hidden;
}

/* Imagen de fondo difuminada */
.contacto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/imagenes/almacen_3.webp');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) blur(2px) opacity(0.35);
    z-index: 0;
}

/* Overlay sutil */
.contacto-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.75) 0%, rgba(249, 250, 251, 0.6) 100%);
    z-index: 1;
}

/* Asegurar que el contenido esté por encima del overlay */
.contacto-hero .container {
    position: relative;
    z-index: 2;
}

.contacto-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    width: 100%;
}

/* Columna izquierda - Info de contacto y estadísticas */
.contacto-hero-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contacto-hero-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Tags de contacto (etiquetas, no botones) */
.contacto-hero-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--color-gray-200);
    color: var(--color-gray-900);
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contacto-hero-tag i {
    font-size: 1.25rem;
    color: var(--color-success);
}

/* Estadísticas del hero */
.contacto-stats {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

.contacto-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--color-gray-200);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    flex: 0 1 auto;
}

.contacto-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--color-success);
}

.contacto-stat i {
    font-size: 1.5rem;
    color: var(--color-success);
    flex-shrink: 0;
}

.contacto-stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contacto-stat-number {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1;
    white-space: nowrap;
}

.contacto-stat-label {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    font-weight: 500;
    white-space: nowrap;
}

/* Grid de estadísticas - 3+2 en desktop */
.contacto-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    justify-items: center;
}

/* Primera fila: 3 elementos ocupando 2 columnas cada uno */
.contacto-stats-grid .contacto-stat:nth-child(1),
.contacto-stats-grid .contacto-stat:nth-child(2),
.contacto-stats-grid .contacto-stat:nth-child(3) {
    grid-column: span 2;
}

/* Segunda fila: 2 elementos centrados */
.contacto-stats-grid .contacto-stat:nth-child(4) {
    grid-column: 2 / span 2;
}

.contacto-stats-grid .contacto-stat:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Columna derecha - Badge + Texto */
.contacto-hero-right {
    flex: 1;
    text-align: right;
    max-width: 650px;
}

/* Badge verde */
.contacto-hero .contacto-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.contacto-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.contacto-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #334155;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================
   SECCIÓN - DÓNDE ENCONTRARNOS
   ========================================== */
.ubicacion-section {
    padding: 100px 0;
    background: white;
}

.ubicacion-section .section-header {
    margin-bottom: 4rem;
}

.ubicacion-section .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.ubicacion-section .section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.ubicacion-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Tarjeta de información de contacto */
.contacto-info-card {
    background: var(--color-gray-50);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    border: 2px solid var(--color-gray-200);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contacto-info-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--color-success);
}

.contacto-info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contacto-info-item:last-child {
    margin-bottom: 0;
}

.contacto-info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.contacto-info-text h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.contacto-info-text p {
    font-size: 1rem;
    color: var(--color-gray-600);
    margin: 0;
    line-height: 1.6;
}

.contacto-info-text a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-info-text a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Mapa de Google */
.contacto-mapa {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    border: 2px solid var(--color-gray-200);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* ==========================================
   SECCIÓN - FAQ PROMO
   ========================================== */
.faq-promo-section {
    padding: 80px 0;
    background: white;
}

.faq-promo-card {
    background: var(--color-gray-50);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    border: 2px solid var(--color-gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-promo-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--color-success);
}

.faq-promo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.faq-promo-icon i {
    font-size: 2rem;
    color: white;
}

.faq-promo-icon .custom-icon {
    width: 2rem;
    height: 2rem;
    filter: brightness(0) invert(1);
}

.faq-promo-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.faq-promo-text {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-bottom: 0;
    line-height: 1.6;
}

.btn-faq {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-faq:hover::before {
    left: 100%;
}

.btn-faq:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-faq i {
    font-size: 1.25rem;
}

/* ==========================================
   SECCIÓN - FORMULARIO DE CONTACTO
   ========================================== */
.formulario-contacto-section {
    padding: 100px 0;
    background: white;
}

.formulario-header {
    margin-bottom: 3rem;
}

.formulario-header .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.formulario-header .section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.formulario-header .section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.formulario-contacto-card {
    background: var(--color-gray-50);
    border-radius: 24px;
    padding: 3rem;
    border: 2px solid var(--color-gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Estilos del formulario */
.contacto-form .form-label {
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.contacto-form .form-control {
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.contacto-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.contacto-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Checkbox - Estilo presupuesto */
.contacto-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contacto-form .checkbox-group:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.contacto-form .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.contacto-form .checkbox-label {
    font-size: 15px !important;
    color: #000000 !important;
    cursor: pointer;
    flex: 1;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.contacto-form .checkbox-label a {
    color: #10b981;
    text-decoration: underline;
    font-weight: 600;
}

.contacto-form .checkbox-label a:hover {
    color: #059669;
}

/* Botón de envío */
.btn-contacto-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-contacto-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-contacto-submit:hover::before {
    left: 100%;
}

.btn-contacto-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-contacto-submit:active {
    transform: translateY(0);
}

.btn-contacto-submit i {
    font-size: 1.25rem;
}

/* ==========================================
   DARK MODE
   ========================================== */
[data-bs-theme="dark"] .contacto-hero {
    background: var(--color-gray-900);
}

[data-bs-theme="dark"] .contacto-hero::after {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.7) 100%);
}

[data-bs-theme="dark"] .contacto-hero-title {
    color: white;
}

[data-bs-theme="dark"] .contacto-hero-subtitle {
    color: var(--color-gray-400);
}

[data-bs-theme="dark"] .contacto-hero-tag {
    background: var(--color-gray-800);
    border-color: var(--color-gray-700);
    color: white;
}

[data-bs-theme="dark"] .contacto-stat {
    background: var(--color-gray-800);
    border-color: var(--color-gray-700);
}

[data-bs-theme="dark"] .contacto-stat:hover {
    border-color: var(--color-success);
}

[data-bs-theme="dark"] .contacto-stat-number {
    color: white;
}

[data-bs-theme="dark"] .contacto-stat-label {
    color: var(--color-gray-400);
}

[data-bs-theme="dark"] .ubicacion-section {
    background: var(--color-gray-900);
}

[data-bs-theme="dark"] .ubicacion-section .section-title {
    color: white;
}

[data-bs-theme="dark"] .ubicacion-section .section-subtitle {
    color: var(--color-gray-400);
}

[data-bs-theme="dark"] .contacto-info-card {
    background: var(--color-gray-800);
    border-color: var(--color-gray-700);
}

[data-bs-theme="dark"] .contacto-info-text h4 {
    color: white;
}

[data-bs-theme="dark"] .contacto-info-text p {
    color: var(--color-gray-400);
}

[data-bs-theme="dark"] .contacto-mapa {
    border-color: var(--color-gray-700);
}

[data-bs-theme="dark"] .faq-promo-section {
    background: var(--color-gray-800);
}

[data-bs-theme="dark"] .formulario-contacto-section {
    background: var(--color-gray-900);
}

[data-bs-theme="dark"] .formulario-header .section-title {
    color: white;
}

[data-bs-theme="dark"] .formulario-header .section-subtitle {
    color: var(--color-gray-400);
}

[data-bs-theme="dark"] .formulario-contacto-card {
    background: var(--color-gray-800);
    border-color: var(--color-gray-700);
}

[data-bs-theme="dark"] .contacto-form .form-label {
    color: white;
}

[data-bs-theme="dark"] .contacto-form .form-control {
    background: var(--color-gray-900);
    border-color: var(--color-gray-700);
    color: white;
}

[data-bs-theme="dark"] .contacto-form .form-control:focus {
    border-color: var(--color-primary);
    background: var(--color-gray-900);
}

[data-bs-theme="dark"] .contacto-form .checkbox-group {
    background: var(--color-gray-800);
    border-color: var(--color-gray-600);
}

[data-bs-theme="dark"] .contacto-form .checkbox-group:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

[data-bs-theme="dark"] .contacto-form .checkbox-group input[type="checkbox"] {
    accent-color: #10b981;
}

[data-bs-theme="dark"] .contacto-form .checkbox-label {
    color: var(--color-gray-300) !important;
}


/* ============================================
   SISTEMA DE NOTIFICACIONES TOAST
   ============================================ */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: right center;
}

.toast.removing {
    animation: slideOut 0.3s ease-in-out forwards;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(calc(100% + 40px)) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 40px)) scale(0.95);
        opacity: 0;
    }
}

/* Barra de progreso */
.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: currentColor;
    opacity: 0.15;
    animation: progress 3s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Icono del toast */
.toast-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    overflow: hidden;
}

.toast-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0.1;
}

.toast-icon i {
    position: relative;
    z-index: 1;
}

/* Contenido del toast */
.toast-content {
    flex: 1;
    padding-top: 2px;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.toast-message {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Botón de cerrar */
.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
    margin-top: -2px;
}

.toast-close:hover {
    background: #f1f5f9;
    color: #475569;
    transform: scale(1.1);
}

.toast-close:active {
    transform: scale(0.95);
}

/* Toast de éxito - Verde */
.toast.toast-success {
    color: #10b981;
}

.toast.toast-success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Toast de error - Rojo */
.toast.toast-error {
    color: #ef4444;
}

.toast.toast-error .toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    animation: errorShake 0.5s ease-out;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

/* Toast de advertencia - Amarillo */
.toast.toast-warning {
    color: #f59e0b;
}

.toast.toast-warning .toast-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

/* Toast de información - Azul */
.toast.toast-info {
    color: #3b82f6;
}

.toast.toast-info .toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}


/* =================================================================
   BOTÓN VACIAR FORMULARIO
   ================================================================= */

.btn-clear-form {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-clear-form:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-clear-form i {
    font-size: 16px;
}

/* Efecto de brillo en botón vaciar */
.btn-clear-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-clear-form:hover::before {
    left: 100%;
}

/* Asegurar que el texto esté por encima del efecto */
.btn-clear-form > * {
    position: relative;
    z-index: 2;
}

