
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #4CAF50;
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

/* Estilos generales para la navbar */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Estilos para pantallas grandes */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        color: #333;  /* Color oscuro para contraste con fondo claro */
        font-size: 1.05rem;  /* Tamaño ligeramente más grande */
        font-weight: 500;  /* Peso medio */
        padding: 10px 16px;  /* Buen espacio alrededor */
        margin: 0 3px;  /* Separación entre elementos del menú */
        transition: color 0.3s ease;  /* Transición suave de color */
    }
    
    .navbar-nav .nav-link:hover {
        color: #0056b3;  /* Color más destacado al pasar el cursor */
    }
    
    .navbar-nav .nav-link.active {
        color: #0056b3;  /* Color vivo para la página activa */
        font-weight: 600;  /* Más negrita para destacar */
        position: relative;  /* Para el indicador de activo */
    }
    
    /* Indicador visual para el elemento activo */
    .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 16px;
        right: 16px;
        height: 3px;
        background-color: #0056b3;
        border-radius: 2px;
    }
}

/* Estilos para dispositivos móviles */
@media (max-width: 991px) {
    /* Ajustes para el menú en dispositivos móviles */
    .navbar-collapse {
        background-color: #343a40 !important; /* !important para sobrescribir otros estilos */
        padding: 15px;
        border-radius: 0 0 8px 8px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        width: 100%; /* Asegura que ocupe todo el ancho */
        max-width: 100%;
    }
    
    /* Fuerza el texto blanco en los enlaces */
    .navbar-nav .nav-link,
    .navbar-light .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link {
        color: #ffffff !important; /* Texto blanco con !important */
        font-size: 1.1rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        padding: 8px 15px;
    }
    
    /* Asegura que el enlace activo también tenga buen contraste */
    .navbar-nav .nav-link.active,
    .navbar-light .navbar-nav .nav-link.active,
    .navbar-dark .navbar-nav .nav-link.active {
        color: #70c1ff !important; /* Color brillante para destacar */
        font-weight: 600;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }
    
    /* Mejora visibilidad de los ítems */
    .navbar-nav .nav-item {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Asegura que el menú está posicionado correctamente */
    .navbar-collapse {
        position: absolute;
        top: 56px; /* Ajusta según la altura exacta de tu navbar */
        left: 0;
        right: 0;
        z-index: 1000;
    }
}
/* Reset y Elementos Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}
/* Loader */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}


/* Estilo para el fondo del loader */
#loading img {
    width: 50px; /* Tamaño del loader */
    height: 50px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: var(--dark-color);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Ajuste para la imagen */
.hero-section img {
    max-width: 100%;
    height: auto;
}

/* Responsividad */
@media (max-width: 768px) {
    .hero-section {
        height: auto; /* Permite que el tamaño se ajuste automáticamente */
        padding: 0 15px; /* Añade algo de espacio en los lados */
    }

    .hero-section .container {
        padding: 0; /* Evita márgenes innecesarios */
    }

    .hero-section .row {
        flex-direction: column; /* Mueve las columnas una debajo de la otra en pantallas pequeñas */
        align-items: center;
    }

    .hero-section .col-lg-7, .hero-section .col-lg-5 {
        text-align: center; /* Centra el contenido */
        width: 100%; /* Asegura que ocupen el 100% en pantallas pequeñas */
    }

    .hero-section img {
        margin-top: 20px; /* Agrega algo de espacio arriba de la imagen en pantallas pequeñas */
        width: 100%; /* Asegura que la imagen ocupe todo el ancho disponible */
    }
}


.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Services Section */
.service-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: white;

}
    /* Estilos generales */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Poppins', sans-serif;
        color: #333;
        line-height: 1.6;
        background-color: #f4f4f9;
    }

    h1,
    h2,
    h3 {
        font-weight: bold;
    }

    a {
        text-decoration: none;
        color: #007bff;
        transition: color 0.3s;
    }

    a:hover {
        color: #0056b3;
    }

    /* Header con video */
    header {
        position: relative;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: #fff;
        overflow: hidden;
        margin: 0; /* Elimina cualquier margen */
        padding: 0; /* Elimina cualquier padding */
    }

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

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

    header .content {
        position: relative;
        z-index: 2;
        max-width: 800px;
        padding: 20px;
    }

    header h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    header p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        color: white;
    }

    header button {
        background: #007bff;
        color: #fff;
        border: none;
        padding: 10px 20px;
        font-size: 1rem;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s;
    }

    header button:hover {
        background: #0056b3;
    }

    /* Sección: Mis Habilidades */
    section {
        padding: 50px 20px;
        margin: 0 auto;
        text-align: center;
    }

    h2 {
        font-size: 3rem;
        margin-bottom: 20px;
        color: #007bff;
    }

    p {
        font-size: 1.2rem;
        margin-bottom: 40px;
        color: #555;
    }

    /* Contenedor de habilidades */
    .skills-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    /* Tarjeta de habilidad */
    .skill-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        width: 250px;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .skill-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .skill-card img {
        width: 80px;
        filter: grayscale(100%);
        opacity: 0.8;
        margin-bottom: 15px;
    }

    .skill-card img:hover {
        opacity: 1;
    }

    .skill-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #007bff;
    }

    .skill-card p {
        font-size: 1rem;
        color: #666;
    }

    /* Sección: Mis Servicios */
    .services {
        background: #fff;
        padding: 50px 20px;
        text-align: center;
    }

    .services h2 {
        color: #007bff;
        margin-bottom: 20px;
    }

    .services-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .service-card {
        background: #f9f9f9;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        width: 300px;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .service-card img {
        width: 80px;
        margin-bottom: 15px;
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #007bff;
    }

    .service-card p {
        font-size: 1rem;
        color: #666;
    }

    /* Sección: Tecnologías */
    .technologies {
        padding: 50px 20px;
        text-align: center;
    }

    .technologies h2 {
        color: #007bff;
        margin-bottom: 20px;
    }

    .skills-container .skill-card img {
        filter: none;
        opacity: 1;
        transition: transform 0.3s;
    }

    .skills-container .skill-card img:hover {
        transform: scale(1.1);
    }

    /* Sección: Proyectos Destacados */
    .projects {
        background: #f9f9f9;
        padding: 50px 20px;
        text-align: center;
    }

    .projects h2 {
        color: #007bff;
        margin-bottom: 20px;
    }

    .projects-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .project-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        width: 300px;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .project-card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .project-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #007bff;
    }

    .project-card p {
        font-size: 1rem;
        color: #666;
    }

    /* Sección: CTA */
    .cta {
        background: #007bff;
        color: white;
        padding: 30px 20px;
        text-align: center;
        margin: 40px 0;
    }

    .cta h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .cta p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .cta button {
        background: white;
        color: #007bff;
        border: none;
        padding: 10px 20px;
        font-size: 1rem;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
    }

    .cta button:hover {
        background: #0056b3;
        color: white;
    }

    /* Responsividad */
    @media (max-width: 768px) {
        header h1 {
            font-size: 2rem;
        }

        header p {
            font-size: 1rem;
        }

        .service-card,
        .project-card {
            width: 100%;
        }
    }

   /* Hero Section */
.hero-section {
    background-color: #f1f1f1; /* Fondo gris muy claro */
    padding: 60px 0;
    color: #333; /* Texto oscuro */
    text-align: center;
    margin-bottom: 30px; /* Espacio después de la sección */
}

/* Hero Section Heading and Button */
.hero-section h1, .hero-section h2, .hero-section p {
    color: #333; /* Color del texto en gris oscuro */
}

/* Proyectos Destacados */
.projects-section {
    background-color: #fafafa; /* Fondo gris muy claro */
    padding: 60px 0;
    margin-bottom: 30px; /* Espacio después de la sección */
    text-align: center;
    border-bottom: 2px solid #e0e0e0; /* Línea de separación debajo de la sección */
}

.projects-section h2 {
    margin-bottom: 30px;
}

/* CTA Contacto */
.cta-section {
    background-color: #eeeeee; /* Fondo gris claro */
    color: #333;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px; /* Espacio después de la sección */
    border-bottom: 2px solid #e0e0e0; /* Línea de separación debajo de la sección */
}

/* Ajuste de los botones en el Hero y CTA */
.hero-btns a, .cta-section a {
    margin-top: 20px;
}

/* Asegurarse que las imágenes sean responsivas */
.hero-section .img-fluid, .projects-section .img-fluid {
    max-width: 100%;
    height: auto;
}

/* Estilo de la sección de "Proyectos Destacados" (en el contenedor de las tarjetas) */
.projects-section .project-card {
    border: 1px solid #ddd; /* Borde gris claro */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Hero Section: Fondo de imagen */
.hero-section .hero-btns {
    display: flex;
    justify-content: center;
}

/* Agregar márgenes a las tarjetas de proyectos */
.projects-section .project-card .project-info {
    padding: 15px;
    flex-grow: 1; /* Asegura que el contenido se expanda para ocupar el espacio disponible */
}


/* Imagen de las tarjetas */
.projects-section .project-card .project-img {
    position: relative;
    height: 200px; /* Altura fija para la imagen */
    overflow: hidden;
}

.projects-section .project-card .project-info h3 a {
    text-decoration: none;
    color: #333;
}

/* Separación entre secciones */
.hero-section, .projects-section, .cta-section {
    margin-bottom: 30px; /* Espacio entre las secciones */
}

/* Modificaciones del texto en las secciones */
.projects-section .category, .cta-section h2, .cta-section p {
    color: #333;
}

.whatsapp-fijo {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    text-align: center !important;
}

.whatsapp-fijo img {
    border-radius: 50% !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3) !important;
    width: 60px !important;
    height: 60px !important;
}

.whatsapp-fijo div {
    color: hsla(178, 81%, 15%, 0.685) !important;
    font-weight: bold !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
}


/* Estilo para el Footer */
footer {
    background-color: #343a40;
    /* Fondo oscuro */
    color: white;
    padding: 50px 0;
    /* Aumenta el padding para darle más espacio */
}

footer h5 {
    font-size: 1.8rem;
    /* Aumenta el tamaño de los títulos */
    margin-bottom: 1.5rem;
    font-weight: bold;
}

footer .social-icons a {
    font-size: 2rem;
    /* Aumenta el tamaño de los iconos */
    color: white;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #ffc107;
    /* Color dorado cuando pasa el mouse */
}

footer .col-md-4 {
    margin-bottom: 1.5rem;
    /* Espacio entre las columnas */
}

/* Asegura que el contenido se vea bien en pantallas más pequeñas */
@media (max-width: 768px) {
    footer .social-icons a {
        font-size: 2.5rem;
        /* Aumenta el tamaño de los iconos en pantallas pequeñas */
    }

    footer h5 {
        font-size: 2rem;
        /* Aumenta el tamaño del título en pantallas pequeñas */
    }
}


    /* Fondo gris claro para la sección "page-header" */
    .page-header {
        position: relative;
        background-color: #f0f0f0; /* Gris claro */
        padding: 50px 0; /* Ajuste de padding si es necesario */
        margin-top: 80px; /* Ajustar este valor para crear el espacio necesario */
    }

    .divider-custom {
        margin: 1.25rem 0 1.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .divider-custom .divider-custom-line {
        width: 100%;
        max-width: 7rem;
        height: 0.25rem;
        background-color: #ffffff;
        border-radius: 1rem;
        border-color: #ffffff;
    }

    .divider-custom .divider-custom-line:first-child {
        margin-right: 1rem;
    }

    .divider-custom .divider-custom-line:last-child {
        margin-left: 1rem;
    }

    .divider-custom .divider-custom-icon {
        font-size: 1.5rem;
    }

    .contact-item .icon {
        min-width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Animaciones al hacer hover */
    .contact-form .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2) !important;
        transition: all 0.3s ease;
    }

    .social-links a:hover {
        background-color: #007bff;
        color: white;
        transform: translateY(-3px);
        transition: all 0.3s ease;
    }

    /* Agregar efecto a los inputs al enfocar */
    .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    }

    /* Mejorar cards de FAQ */
    .card {
        transition: all 0.3s ease;
        height: 100%; /* Asegura que todas las cards tengan la misma altura */
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    }

    .icon-box {
        width: 70px;
        height: 70px;
        background-color: rgba(0, 123, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
