/* Estilos personalizados para Arquimex V2 - Versión 1.1 */

:root {
    --primary-blue: #2563eb;
    --primary-orange: #ea580c;
    --dark-blue: #1e40af;
    --light-orange: #fb923c;
    --construction-gray: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Estilos para la página principal con video de fondo */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 3rem;
}

/* Header con logo y navegación */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 65px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-orange) !important;
    transform: translateY(-2px);
}

/* Botones personalizados */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #3b82f6, var(--primary-blue));
    color: white;
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--text-dark), var(--construction-gray));
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-info {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

@media (max-width: 991px) {
    .footer-info {
        text-align: center;
        margin-bottom: 1rem;
    }
}

.footer-info strong {
    color: var(--light-orange);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .footer-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

/* Efectos de hover para enlaces */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Estilos para el menú hamburguesa */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Botón flotante de WhatsApp - Global */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 24px;
    margin-right: 8px;
}

.whatsapp-text {
    display: inline;
}

/* Animación de pulso suave */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-btn {
    animation: whatsapp-pulse 2s infinite;
}

/* Responsive: En móviles, solo mostrar el icono */
@media (max-width: 768px) {
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        padding: 12px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
    
    .whatsapp-btn i {
        margin-right: 0;
        font-size: 28px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
}

/* Efecto hover adicional */
.whatsapp-btn:hover {
    animation: none;
}

/* Estilos para popup de imágenes */
.popup-image {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.popup-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Modal de imagen */
#imageModal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#imageModal .modal-body {
    background: transparent;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

#imageModal .modal-dialog {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
}

#imageModal .btn-close {
    position: absolute;
    top: -45px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    backdrop-filter: blur(10px);
    z-index: 1060;
    opacity: 1;
}

#imageModal .btn-close:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1);
}

#imageModal .btn-close:focus {
    box-shadow: none;
}

/* Overlay personalizado para el modal */
#imageModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Animación suave para el modal */
#imageModal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
}

#imageModal.show .modal-dialog {
    transform: none;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    #imageModal .modal-dialog {
        margin: 10px;
        min-height: calc(100vh - 20px);
    }
    
    #imageModal .btn-close {
        top: -35px;
        right: 5px;
        width: 30px;
        height: 30px;
    }
}

/* Protección adicional para imágenes */
img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

img.popup-image {
    pointer-events: auto;
}

/* Deshabilitar selección de texto en toda la página para mayor protección */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Permitir selección solo en elementos de texto necesarios */
input, textarea, p, span, div.text-content {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* =================================================================== */
/* ESTILOS PARA ACCESO A CLIENTES */
/* =================================================================== */

/* Botones del área de acceso a clientes con hover más suave */
.btn.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}

.btn.btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn.btn-success:hover {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn.btn-warning:hover {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn.btn-primary:hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Efectos hover para las tarjetas de servicios */
.card.service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.service-card:hover .position-absolute {
    opacity: 1 !important;
}

/* Hover para botones grandes de acceso */
.btn.btn-lg:hover {
    transform: translateY(-3px) !important;
    transition: all 0.3s ease !important;
}

/* Hover específico para botones de formularios */
.btn.btn-primary-custom:hover {
    background: linear-gradient(135deg, #3b82f6, var(--primary-blue)) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    transition: all 0.3s ease !important;
}

.btn.btn-primary-custom:focus,
.btn.btn-primary-custom:active {
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    color: white !important;
}

/* Badges con hover suave */
.badge:hover {
    transform: scale(1.05) !important;
    transition: all 0.2s ease !important;
}

/* Links con hover más suave */
a:hover:not(.btn) {
    color: var(--primary-orange) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

/* Hover para botones de acción específicos del timeline */
.btn:hover {
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

/* Forzar estilos para botones específicos de Bootstrap */
button.btn:hover,
input[type="submit"].btn:hover,
a.btn:hover {
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Estilos específicos para cada tipo de botón */
button.btn-success:hover,
input.btn-success:hover,
a.btn-success:hover {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    transform: translateY(-2px) !important;
}

button.btn-primary:hover,
input.btn-primary:hover,
a.btn-primary:hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px) !important;
}

button.btn-warning:hover,
input.btn-warning:hover,
a.btn-warning:hover {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    transform: translateY(-2px) !important;
}