/**
 * Forte - Plataforma de conexión entre usuarios y oportunidades laborales
 * Hoja de estilos principal (styles.css)
 */

/* Variables globales */
:root {
    --primary: #05A0C1;
    --secondary: #475569;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #94a3b8;
    --border-radius: 0.375rem;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Tema oscuro */
    --main-color: #05A0C1;
    --accent-color: #ffffff;
    --dark-bg: #0B0F19;
    --text-light: rgba(255, 255, 255, 0.8);
}

/* Estilos generales */
.dm-sans,
[class^="dm-sans-"],
[class*=" dm-sans-"] {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Breadcrumbs solo visibles cuando se habilita explícitamente en la página */
.breadcrumb {
    display: none !important;
}

.with-breadcrumb .breadcrumb {
    display: flex !important;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--accent-color);
    line-height: 1.6;
    background: var(--dark-bg);
    overflow-x: hidden;
    padding-top: 80px; /* Espacio para navbar fixed */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #1e40af;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary);
    font-weight: 400;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
}

/* Logo styling similar al de referencia */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
    cursor: pointer;
    position: relative;
    padding: 0.5rem 1rem;
    overflow: hidden;
}

.logo:hover::after {
    transform: scaleX(1);
}

/* Dark blue navbar styling */
.bg-dark-blue {
    background: rgba(11, 15, 25, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(5, 160, 193, 0.1);
}

@media (max-width: 991.98px) {
    .bg-dark-blue {
        border-bottom: none !important;
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--main-color);
}

.navbar-dark .navbar-brand {
    color: #ffffff;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .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%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Auth buttons styling for dark navbar */
.navbar-dark .auth-buttons .btn {
    border-radius: 50px;
    padding: 0.55rem 1.15rem;
    font-size: 0.92rem;
    line-height: 1.2;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: auto;
    max-width: 180px;
}

.navbar-dark .auth-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 160, 193, 0.18);
}

.navbar-dark .btn-outline-primary {
    color: var(--main-color);
    border-color: var(--main-color);
}

.navbar-dark .btn-outline-primary:hover {
    color: #ffffff;
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.navbar-dark .btn-primary {
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
    border-color: var(--main-color);
}

.navbar-dark .btn-primary:hover {
    background-color: #048CA5;
    border-color: #048CA5;
}

/* Dropdown styling for dark navbar */
.navbar-dark .dropdown-menu {
    background-color: rgba(11, 15, 25, 0.95);
    border: 1px solid rgba(5, 160, 193, 0.2);
    backdrop-filter: blur(10px);
}

.navbar-dark .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .dropdown-item:hover {
    background-color: rgba(5, 160, 193, 0.1);
    color: #ffffff;
}

.navbar-dark .dropdown-divider {
    border-color: rgba(5, 160, 193, 0.2);
}

.navbar-nav {
    margin: 0 auto;
}

.nav-buttons {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
}

.auth-buttons .btn,
.auth-buttons .btn-group {
    width: auto;
    white-space: nowrap;
}

.auth-buttons .btn-outline-primary {
    min-width: 11.5rem;
}

.navbar-brand img {
    max-height: 34px;
}

/* Ajustes responsive para el navbar */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
        text-align: center;
    }
    
    .nav-buttons {
        justify-content: center;
        width: 40%;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .auth-buttons .btn,
    .auth-buttons .btn-group {
        width: 100%;
    }
    
    .auth-buttons .btn-outline-primary {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .navbar-dark .dropdown-menu {
        text-align: center;
        border: 1px solid rgba(37, 99, 235, 0.2);
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        background-color: rgba(15, 23, 42, 0.95);
    }
    
    .navbar-dark .dropdown-item {
        padding: 0.5rem 1.5rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .navbar-dark .dropdown-item:hover {
        background-color: rgba(37, 99, 235, 0.1);
        color: #ffffff;
    }
    
    .navbar-toggler {
        padding: 0.25rem;
    }

    .navbar-collapse {
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(11, 15, 25, 0.98);
        padding: 0 1rem 1rem;
        z-index: 999;
    }

    .navbar-collapse .nav-buttons {
        justify-content: center;
        width: 100%;
    }

    .navbar-collapse .auth-buttons,
    .navbar-collapse .dropdown {
        margin-top: 0 !important;
    }

    .navbar-collapse .auth-buttons {
        width: 100%;
        flex-direction: column;
    }

    .navbar-collapse .auth-buttons .btn,
    .navbar-collapse .auth-buttons .btn-group {
        width: 100%;
    }

    .navbar-collapse .auth-buttons .btn:not(:last-child) {
        margin-bottom: 0.5rem;
    }

    .navbar-brand img {
        max-height: 35px;
    }
}

/* Hero Section */
.hero-section {
    background: var(--dark-bg);
    background-size: cover;
    background-position: center;
    color: var(--accent-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
}

.hero-container {
    position: relative;
    z-index: 1;
}

/* ========================================
   PARTÍCULAS INTERACTIVAS HERO
   ======================================== */

/* Canvas de partículas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
    opacity: 0.8;
    cursor: default;
}

/* Hero section con partículas */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
}

/* Asegurar que el contenido del hero esté por encima de las partículas */
.hero-content {
    position: relative;
    z-index: 3;
}

/* Efecto de hover para el canvas */
.hero-section:hover #particles-canvas {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Efecto visual adicional cuando el usuario interactúa */
#particles-canvas:active {
    opacity: 1;
    filter: brightness(1.1);
}

/* Responsive para las partículas */
@media (max-width: 768px) {
    #particles-canvas {
        opacity: 0.6;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    #particles-canvas {
        opacity: 0.5;
        pointer-events: none; /* Desactivar interacción en móviles pequeños para mejorar rendimiento */
    }
}

/* Indicador visual de interactividad */
.hero-section::after {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 4;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Ocultar el indicador en móviles */
@media (max-width: 768px) {
    .hero-section::after {
        display: none;
    }
}

/* ========================================
   FIN PARTÍCULAS INTERACTIVAS
   ======================================== */

/* Hero Search Bar */
.hero-search {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.search-form-hero {
    background: #ffffff;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.search-form-hero:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.search-input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-search-input {
    border: none !important;
    background: transparent !important;
    padding: 12px 25px !important;
    font-size: 1.1rem !important;
    color: #333 !important;
    box-shadow: none !important;
    flex-grow: 1;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-btn {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none !important;
    padding: 0 !important;
}

.hero-search-btn:hover {
    background: #048CA5;
    transform: scale(1.05);
    color: white;
}

.hero-search-btn i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .hero-search {
        max-width: 100%;
        margin-top: 2rem !important;
    }
    
    .hero-search-input {
        padding: 10px 15px !important;
        font-size: 1rem !important;
    }
    
    .hero-search-btn {
        width: 45px;
        height: 45px;
    }
}


/* Quick Search */
.quick-search {
    padding: 2rem 0;
    background-color: var(--light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.quick-search-form .input-group {
    max-width: 800px;
    margin: 0 auto;
}

.quick-search-form .input-group-text {
    background-color: transparent;
    border: none;
    padding-right: 0;
}

.quick-search-form .form-control {
    border: none;
    background-color: white;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
}

.quick-search-form .form-control:focus {
    box-shadow: var(--shadow);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

/* Stats Section */
.stats-section {
    background-color: #fff;
}

.stats-item {
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stats-item:hover {
    transform: translateY(-5px);
}

.stats-icon {
    margin-bottom: 1rem;
}

.stats-item h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Estilos adicionales para estadísticas */
.counter {
    background: -webkit-linear-gradient(45deg, var(--primary), #1e40af);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* How it works */
.process-card {
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-5px);
}

.process-icon .badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.process-step {
    position: relative;
    padding-bottom: 2rem;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: rgba(37, 99, 235, 0.1);
}

/* Responsive styles for How it works section */
@media (max-width: 768px) {
    .process-card {
        text-align: center;
    }
    
    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .process-step:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .process-icon {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .process-content {
        text-align: center;
    }
    
    .process-content p {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
}

/* Job Cards */
.job-card {
    transition: var(--transition);
    border-radius: 20px;
}

.job-card:hover {
    transform: translateY(-5px);
}

.job-card .card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.job-card .card:hover {
    box-shadow: var(--shadow-lg);
}

.company-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    overflow: hidden;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
}

.job-title-container {
    display: flex;
    align-items: center;
}

.job-details i {
    width: 20px;
}

.job-tags .badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.job-description {
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.company-logo-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Estilos para los logos de empresas */
.company-logo-container {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Job Listings Table */
.job-listing-table thead th {
    font-weight: 600;
    color: var(--secondary);
}

.job-title {
    font-size: 1rem;
    font-weight: 500;
}

.job-listing-table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.job-listing-table tr {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.job-listing-table tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.job-listing-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Testimonials */
.testimonial-card {
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-style: italic;
    position: relative;
    padding: 0 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--gray);
}

.testimonial-avatar img {
    object-fit: cover;
}

.testimonial-rating {
    margin-bottom: 1.5rem;
}

.testimonial-author {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* Company Logos */
.company-logo-img {
    transition: var(--transition);
    filter: grayscale(100%);
}

.company-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    opacity: 0.9;
}

/* Blog Cards */
.blog-card {
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-category .badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card .card-title {
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37, 99, 235, 0.25);
}

.accordion-item {
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
}

.accordion-body {
    padding: 1.25rem;
    color: var(--secondary);
}

/* Newsletter */
.newsletter-container {
    border-radius: var(--border-radius);
}

.newsletter-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-form .form-control {
    height: 3rem;
    padding-left: 1.25rem;
}

.newsletter-form .btn {
    height: 3rem;
}

/* Footer Styling */
.footer {
    background-color: #0b0f19;
    border-top: 1px solid rgba(5, 160, 193, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-logo-link img {
    transition: transform 0.3s ease;
}

.footer-logo-link:hover img {
    transform: scale(1.05);
}

.footer-description {
    line-height: 1.8;
    max-width: 320px;
    font-size: 1rem;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-heading:hover::after {
    width: 50px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-link-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-link-small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-small:hover {
    color: var(--primary);
}

.social-icon-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-4px) rotate(8deg);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(5, 160, 193, 0.3);
}

.contact-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 160, 193, 0.1);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-link:hover .contact-icon-wrapper {
    background: var(--primary);
    color: #ffffff;
}

/* Modern Footer Buttons */
.btn-outline-primary-modern {
    background: rgba(5, 160, 193, 0.03);
    border: 1px solid rgba(5, 160, 193, 0.2);
    color: #ffffff;
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-outline-primary-modern:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(5, 160, 193, 0.3);
}

.btn-outline-light-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-outline-light-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
    .footer-description {
        max-width: 100%;
    }
}

/* No Results */
.no-results {
    padding: 3rem 0;
    text-align: center;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Estilos para los botones */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-lg {
    border-radius: 40px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-lg:hover::before {
    left: 100%;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-lg.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border: none;
    color: #ffffff;
}

.btn-lg.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.btn-lg.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Modal de preinscripción */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.modal-dialog {
    margin: 2rem auto;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-bottom: none;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.modal-title {
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.modal-title::before {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.btn-close {
    position: relative;
    z-index: 2;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition);
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    position: relative;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem 2rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    gap: 1rem;
}

/* Estilos para los campos del formulario en el modal */
#preRegistroModal .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

#preRegistroModal .form-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 0.5rem;
    display: inline-block;
}

#preRegistroModal .form-control,
#preRegistroModal .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

#preRegistroModal .form-control:focus,
#preRegistroModal .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    background: #ffffff;
}

#preRegistroModal .form-control::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Estilos para campos dinámicos */
#campos-empresa,
#campos-usuario {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

#campos-empresa[style*="none"],
#campos-usuario[style*="none"] {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    overflow: hidden;
}

/* Botones del modal */
#preRegistroModal .btn {
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#preRegistroModal .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#preRegistroModal .btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

#preRegistroModal .btn-secondary {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: var(--secondary);
}

#preRegistroModal .btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Efectos adicionales */
.form-floating-animation {
    position: relative;
}

.form-floating-animation .form-control:focus + .form-label,
.form-floating-animation .form-control:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.5rem) scale(0.85);
    color: var(--primary);
}

/* Alertas en el modal */
#preRegistroModal .alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#preRegistroModal .alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-left: 4px solid #22c55e;
}

#preRegistroModal .alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

/* Animación de entrada del modal */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out, opacity 0.3s ease-out;
    transform: scale(0.9) translateY(-50px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animación para campos que aparecen/desaparecen */
#campos-empresa,
#campos-usuario {
    transition: all 0.3s ease;
}

/* Responsive del modal */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .stats-item h2 {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .job-card .card-body {
        padding: 1.25rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .newsletter-container {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-image {
        display: none;
        margin-top: 2rem;
    }

    .hero-title,
    .hero-subtitle,
    .hero-search {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-search {
        max-width: 100%;
        margin-top: 2rem !important;
    }
    
    .hero-buttons .btn {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-section {
        text-align: center;
    }
    
    .quick-search .form-select,
    .quick-search .form-control {
        height: 3rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .job-listing-table td:not(:first-child) {
        display: none;
    }
    
    .job-listing-table .job-title-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-listing-table .company-logo-small {
        margin-bottom: 0.5rem;
    }
    
    .process-card {
        margin-bottom: 1.5rem;
    }
    
    .trusted-companies .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .blog-card .card-img-top {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .quick-search .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .job-listing-table {
        border-spacing: 0;
    }
    
    .job-listing-table tr {
        display: block;
        margin-bottom: 1rem;
    }
    
    .job-listing-table td {
        display: block;
        text-align: left;
        padding: 0.5rem 1rem;
    }
    
    .job-listing-table td:first-child {
        padding-top: 1rem;
    }
    
    .job-listing-table td:last-child {
        padding-bottom: 1rem;
        border-bottom: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats-item {
        padding: 1rem;
    }
    
    .stats-item h2 {
        font-size: 1.75rem;
    }
    
    .trusted-companies .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
}

/* Touch devices */
@media (hover: none) {
    .job-card:hover,
    .blog-card:hover,
    .testimonial-card:hover,
    .process-card:hover {
        transform: none !important;
    }
    
    .company-logo-img:hover {
        filter: grayscale(100%);
        opacity: 0.7 !important;
    }
}

/* Ajustes de accesibilidad para dispositivos móviles */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Previene zoom en iOS */
    }
    
    .accordion-button {
        padding: 1rem;
    }
    
    .form-control-lg {
        height: 3rem;
        font-size: 1rem !important;
    }
}

/* Soporte para pantallas de alta resolución */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('../../../resources/media/imagenes/hero@2x.png');
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Estilos para formularios */
.form-control:focus {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 500;
}

/* Estilos 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;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilos de impresión */
@media print {
    .no-print {
        display: none !important;
    }
    
    .job-card,
    .blog-card,
    .testimonial-card {
        break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* =================================
   ESTILOS PRELANZAMIENTO
   ================================= */

/* Estadísticas con barras de progreso */
.stats-section .progress {
    background-color: rgba(37, 99, 235, 0.1);
}

.stats-section .progress-bar {
    transition: width 0.6s ease;
}

.stats-item {
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-5px);
}

/* Tarjetas de categorías */
.category-preview-card {
    transition: transform 0.3s ease;
}

.category-preview-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

/* Empresas próximas */
.coming-soon-company {
    transition: transform 0.3s ease;
}

.coming-soon-company:hover {
    transform: scale(1.05);
}

/* Testimonios con badges */
.testimonial-card .badge {
    font-size: 0.75rem;
}

/* Trabajos de ejemplo con overlay */
.job-card .position-relative .badge {
    z-index: 10;
}

.job-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Alertas de prelanzamiento */
.alert-info {
    border: 1px solid #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Newsletter mejorado */
.newsletter-container {
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.newsletter-container:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transition: border-color 0.3s ease;
}

/* Animaciones suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-item,
.category-preview-card,
.testimonial-card,
.job-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Badges de prelanzamiento */
.badge.bg-warning {
    color: #000 !important;
}

/* Counters animados */
.counter {
    font-weight: 700;
    color: var(--primary);
}

/* =================================
   FIN ESTILOS PRELANZAMIENTO
   ================================= */

/* ========================================
   ESTILOS MODERNOS PARA PÁGINA PRINCIPAL
   ======================================== */

/* Efectos generales de modernización */
.modern-page {
    background: linear-gradient(135deg, #f8faff 0%, #e0f2fe 50%, #f0f9ff 100%);
    min-height: 100vh;
    position: relative;
}

.modern-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(37,99,235,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

/* Hero Section Modernizada */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 0.75rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    align-items: center;
}

.hero-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    color: #ffffff !important;
}

/* Typewriter Effect Styles */
#typewriter-text {
    display: inline-block;
    min-height: 1.2em;
    color: #ffffff !important;
    transition: all 0.3s ease;
    position: relative;
}

#typewriter-text::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0;
    animation: none;
}

/* Responsive typewriter */
@media (max-width: 768px) {
    #typewriter-text {
        font-size: 0.9em;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    #typewriter-text {
        font-size: 0.8em;
        line-height: 1.4;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.hero-buttons .btn {
    border-radius: 40px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    color: var(--primary);
    border: none;
}

.hero-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Cards modernizadas */
.modern-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
    padding: 2rem;
    padding-top: 4rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

.modern-card:hover::before {
    opacity: 1;
}

/* Badges modernos */
.modern-badge {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.modern-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-badge:hover::before {
    left: 100%;
}

/* Estadísticas modernizadas */
.stats-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stats-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.stats-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-5px);
}

.stats-item h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stats-item .stats-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
}

/* Process cards modernizadas */
.process-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #1e40af);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.process-card:hover::before {
    transform: scaleY(1);
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.process-icon .badge {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Botones modernos */
.btn-modern {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
    color: white;
}

/* Alertas modernizadas */
.alert-modern {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.alert-modern .btn {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.alert-modern .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplicar animaciones */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.animate-right {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

/* Delays para animaciones escalonadas */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .glass-section {
        border-radius: 20px;
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .modern-card {
        border-radius: 15px;
        padding: 1.5rem;
        padding-top: 4rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 2rem;
        margin-bottom: 1rem;
    }
    
    .stats-item h2 {
        font-size: 2.5rem;
    }
}

/* Responsive para botones más pequeños */
@media (max-width: 768px) {
    .btn-lg,
    .modern-btn-primary,
    .modern-btn-secondary {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.95rem !important;
        border-radius: 35px !important;
    }
    
    .hero-buttons .btn {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.95rem !important;
        border-radius: 35px !important;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    .btn-lg,
    .modern-btn-primary,
    .modern-btn-secondary {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.9rem !important;
        border-radius: 30px !important;
        width: 100%;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.9rem !important;
        border-radius: 30px !important;
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

/* ========================================
   NUEVA SECCIÓN "CÓMO FUNCIONA" MEJORADA
======================================== */

/* Sección principal */
.how-it-works {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

/* Formas flotantes de fondo */
.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--info));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-shapes::before {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-shapes::after {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Badge principal */
.badge-primary-gradient {
    background: linear-gradient(45deg, var(--primary), var(--info));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Decoración del título */
.underline-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--info));
    border-radius: 2px;
}

/* Timeline central */
.timeline-wrapper {
    position: relative;
    display: none; /* Oculto en móvil */
}

.central-timeline {
    position: relative;
    height: 150px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--info));
    transform: translateY(-50%);
}

.timeline-nodes {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.timeline-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s infinite;
}

.timeline-node::after {
    content: attr(data-step);
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Secciones de proceso */
.process-section {
    padding: 2rem 0;
}

.section-badge {
    margin-bottom: 2rem;
}

/* Gradientes para badges */
.bg-primary-gradient {
    background: linear-gradient(45deg, var(--primary), #3b82f6) !important;
}

.bg-secondary-gradient {
    background: linear-gradient(45deg, var(--secondary), #6b7280) !important;
}

.bg-info-gradient {
    background: linear-gradient(45deg, var(--info), #06b6d4) !important;
}

.bg-success-gradient {
    background: linear-gradient(45deg, var(--success), #22c55e) !important;
}

.bg-warning-gradient {
    background: linear-gradient(45deg, var(--warning), #fbbf24) !important;
}

/* Cards de pasos */
.process-step-modern {
    position: relative;
}

.step-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    gap: 1.5rem;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Números de paso */
.step-number-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
}

.step-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary), transparent);
    margin-top: 10px;
}

/* Contenido de paso */
.step-content {
    flex: 1;
}

.step-title {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Tags de características */
.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Separador visual */
.separator-visual {
    position: relative;
    height: 200px;
}

.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.connection-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    transform: translateX(-50%);
}

/* CTAs */
.cta-wrapper .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-primary-gradient {
    background: linear-gradient(45deg, var(--primary), var(--info));
    border: none;
    color: white;
}

.btn-secondary-gradient {
    background: linear-gradient(45deg, var(--secondary), #6b7280);
    border: none;
    color: white;
}

.cta-wrapper .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-wrapper .btn::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.6s ease;
}

.cta-wrapper .btn:hover::before {
    left: 100%;
}

/* Showcase de beneficios */
.benefits-showcase {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.benefit-card {
    padding: 1rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.benefit-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.benefit-description {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* Responsive */
@media (min-width: 992px) {
    .timeline-wrapper {
        display: block;
    }
}

@media (max-width: 991px) {
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .companies-section .step-card {
        flex-direction: column;
    }
    
    .companies-section .step-content {
        text-align: center !important;
    }
    
    .step-features {
        justify-content: center !important;
    }
    
    .cta-wrapper {
        text-align: center !important;
    }
    
    .section-badge {
        text-align: center !important;
    }
    
    .separator-visual {
        display: none;
    }
}

@media (max-width: 576px) {
    .how-it-works {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
    
    .benefits-showcase {
        padding: 1.5rem;
    }
}

/* ========================================
   ESTILOS PARA PARTÍCULAS Y TEMA OSCURO
   ======================================== */

/* Partículas de fondo */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

/* Hero overlay para tema oscuro */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(11, 15, 25, 0.9) 0%, 
        rgba(5, 160, 193, 0.1) 50%, 
        rgba(11, 15, 25, 0.9) 100%);
    z-index: 2;
}

/* Efecto de texto animado */
.gradient-text {
    background: linear-gradient(45deg, var(--main-color), #ffffff, var(--main-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Botones flotantes modernos */
.floating-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(5, 160, 193, 0.3);
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.floating-btn:hover::before {
    left: 100%;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 160, 193, 0.4);
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* Efectos de animación en scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Secciones con efecto glass */
.glass-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(5, 160, 193, 0.1);
    border-bottom: 1px solid rgba(5, 160, 193, 0.1);
}

/* Ajustes responsivos para tema oscuro */
@media (max-width: 768px) {
    #particles-js {
        opacity: 0.4;
    }

    .floating-image {
        animation-duration: 4s;
    }
    
    .gradient-text {
        animation-duration: 2s;
    }
}

/* Premium Page Header */
.page-header-forte {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f2e 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(5, 160, 193, 0.1);
    margin-top: 0;
}

.page-header-forte::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(5, 160, 193, 0.1) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.page-header-forte::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 160, 193, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-forte .container {
    position: relative;
    z-index: 1;
}

.page-header-forte h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header-forte .lead {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .page-header-forte {
        padding: 3rem 0;
        text-align: center;
    }
    .page-header-forte h1 {
        font-size: 2.5rem;
    }
}
