/* Estilos generales */
:root {
    --primary: #0746b5;
    --secondary: #7c858d;
    --dark: #212529;
    --light: #f8f9fa;
}

/* Prevenir desbordamiento horizontal global */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 76px; /* Para compensar el navbar fijo */
}

.text-color {
    color: var(--primary);
    font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
    font-weight: 900;
}

/* Navbar */

.fixed-top{
    background-image: url("../images/fondo-navbar.png");
}

.navbar {
    background-color: #0746B5 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    min-height: 55px;
    padding: 0.2rem 0;
}

.navbar-brand .d-flex {
    line-height: 1;
}

.brand-main {
    font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: -1px; 
    color: #fff;
    background-color: transparent;
}

.brand-sub{
    color: #fff;
    letter-spacing: 3px;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1;
    margin-top: 1px;
}

#navbarNav{
    background-color: transparent;
}


.navbar-logo {
    height: 90px; /* Ajusta según el tamaño de tu logo */
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}



/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1593113630400-ea4288922497?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 600px;
}

/* Sección Nosotros con imagen local */



/* Service Cards 
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}*/

/* Servicios Section - Ocultar hasta animación */

#servicios {
    background: url('../images/FONDO_mobil.png') no-repeat center center/cover;
    padding: 80px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.8s ease-out;
    border-left: 4px solid #0746B5;
    opacity: 0;
    transform: translateY(50px);
}

.service-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.service-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-item h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Prevenir que se vean las animaciones antes de tiempo */
.service-item.animation-completed {
    animation: none !important;
}

/* Asegurar que las imágenes dentro de los servicios también estén ocultas */
.service-item img {
    opacity: 0;
    transition: opacity 0.8s ease-out 0.3s; /* Delay para que aparezcan después de la tarjeta */
}

.service-item.animated img {
    opacity: 1;
}

/* Formulario 
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}*/

/* Formulario de contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.form-select option {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.map-responsive { 
  /*margin-top: none;*/
  position: relative;
  overflow: hidden;
  padding-bottom: 60%; /* 16:9 ratio */
  height: 450px;
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Animaciones */
.animate__animated {
    opacity: 0;
}

.animate__fadeInUp {
    opacity: 1;
    transform: translateY(1);
}

/* Botones */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #616588;
    border-color: #616588;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .btn {
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 10px 0;
    }

    .navbar-logo{
        padding: 0px;
        margin: 0px;
    }

    /* Mejoras para el menú móvil - Sin animaciones */
    .navbar-collapse {
    background-color:  #0746B5;
    border-radius: 0 0 10px 10px;
    }

    .brand-main{
        font-size: 1.4rem;
        margin-left: -15px;

    }

    .brand-sub{
        font-size: 1rem;
        margin-left: -15px;    
    }

    #servicios {
    background: url('../images/FONDO_mobil.png') center/cover;
    padding: 80px 0;
}
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-radius: 5px;
        /* Eliminamos la transición y hover effects */
    }
    
    .navbar-nav .nav-link:hover {
        background-color: transparent; /* Sin efecto hover */
    }
    
    .navbar-nav .nav-link::after {
        display: none; /* Ocultar subrayado en móvil */
    }
    
    

/* Estilo para el enlace activo - Solo color diferente */
.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
    background-color: transparent; /* Sin fondo en móvil */
}

/* Eliminar transformaciones de botones en móvil */
@media (max-width: 768px) {
    .btn:hover {
        transform: none !important;
    }
    
    .hero .btn {
        transform: none !important;
    }
    
    .hero .btn:hover {
        transform: none !important;
    }
}
}

/* Secciones */
section {
    padding: 80px 0;
}

/* Alertas */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos para la página de servicios */
.hero-services {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1563013544-824ae1b704d3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 50vh;
    min-height: 400px;
}

#allServicios {
    background: url('../images/FONDO_mobil.png') center/cover;
    padding: 80px 0;
}

.service-detail-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.service-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.service-icon-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Botón Ver Más mejorado */
.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-services {
        height: 40vh;
        min-height: 300px;
    }
    
    .service-detail-card {
        margin-bottom: 20px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Botones Flotantes */
.floating-buttons {
    position: fixed;
    bottom: 80px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;

     /* Asegurar que los botones también tengan alto z-index */
    z-index: 10000; /* Más alto que el contenedor */
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.floating-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Botón de WhatsApp */
.whatsapp-btn {
    background: #25D366;
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

/* Botón de Llamada */
.call-btn {
    background: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.call-btn:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
}

/* Tooltips */
.floating-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;

     /* Asegurar que los botones también tengan alto z-index */
    z-index: 10000; /* Más alto que el contenedor */
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid rgba(0, 0, 0, 0.85);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    z-index: 10002; /* Más alto que el tooltip */
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;

    /* Asegurar que el hover no afecte el z-index */
    z-index: 10000 !important;
}

/* Animación flotante */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Efecto de pulso para llamada */
.call-btn.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 80px;
        right: 15px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .floating-tooltip {
        display: none; /* Ocultar tooltips en móviles */
    }
    
    /* Mostrar tooltips al hacer tap largo en móviles */
    .floating-btn:active .floating-tooltip {
        display: block;
        opacity: 1;
        visibility: visible;
        right: 65px;
    }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
}

/* Modo accesibilidad: reducir animaciones */
@media (prefers-reduced-motion: reduce) {
    .floating-btn {
        animation: none;
    }
    
    .floating-btn:hover {
        transform: translateY(-2px);
    }
    
    .call-btn.pulse {
        animation: none;
    }
}

/*CV Page Styles*/

/* Prevenir desbordamiento horizontal global */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 76px;
    background-color: #f8f9fa;
}

/* Header */
.header {
    background: linear-gradient(rgba(52, 121, 143, 0.9), rgba(52, 121, 143, 0.9)), url('https://images.unsplash.com/photo-1560264280-88b83d869d95?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

/* Contenedor de carga */
.upload-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 4rem;
}

/* Área de carga */
.upload-area {
    border: 2px dashed var(--primary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.upload-area:hover {
    background-color: #f0f7ff;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Lista de archivos */
.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary);
}

.file-icon {
    margin-right: 10px;
    color: var(--primary);
}

.btn-remove {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
}

/* Sección de requisitos */
.requirements {
    background-color: #e9ecef;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 4px;
}

/* Números de paso */
.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
}

/* Botones */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #616588;
    border-color: #616588;
    transform: translateY(-2px);
}

/* Formulario */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(52, 121, 143, 0.25);
}

/* Footer */
.footer {
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 2rem 0;
    }
    
    .upload-container {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Utilidades para el formulario */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.me-2 {
    margin-right: 0.5rem;
}

.d-block {
    display: block;
}

.text-muted {
    color: #6c757d;
}

.fw-bold {
    font-weight: bold;
}

/* Alerta personalizada */
        .custom-contact-alert {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 600px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 1060;
            padding: 2rem;
            display: none;
        }

        .custom-contact-alert.show {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

        .alert-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1050;
            display: none;
        }

        .alert-overlay.show {
            display: block;
        }

        .alert-header {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 1rem;
        }

        .alert-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-right: 1rem;
        }

        .alert-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin: 0;
        }

        .alert-body {
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .alert-buttons {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
        }

        .btn-alert {
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-cv {
            background-color: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .btn-cv:hover {
            background-color: #616588;
            border-color: #616588;
            transform: translateY(-2px);
            color: white;
        }

        .btn-cancel {
            background-color: transparent;
            border-color: var(--primary);
            color: var(--primary);
            
        }

        .btn-cancel:hover {
            background-color: var(--primary);
            border-color: var(--primary);
            transform: translateY(-2px);
            color: white;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translate(-50%, -60%); }
            to { opacity: 1; transform: translate(-50%, -50%); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .custom-contact-alert {
                width: 95%;
                padding: 1.5rem;
            }
            
            .alert-buttons {
                flex-direction: column;
            }
            
            .btn-alert {
                width: 100%;
            }
        }