/* index-main.css - COPIA EXACTA COMPLETA de tu index.css */
body {
    background: radial-gradient(circle at center, var(--primary-red), var(--dark-red), var(--black));
    color: white;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    padding-top: 80px;
}

/* NAVBAR - EXACTO */
.navbar {
    background: rgba(139, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: white !important;
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .navbar-nav .nav-link.active {
        color: white !important;
        background: rgba(255, 255, 255, 0.2);
        font-weight: 600;
    }

/* Dropdown - EXACTO */
.navbar-nav .dropdown-menu {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    z-index: 1050 !important;
    margin-top: 10px !important;
}

.navbar-nav .dropdown-item {
    color: white !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
}

    .navbar-nav .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }

/* Estilos para las banderas */
.flag-icon {
    width: 20px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Asegurar que el dropdown se cierre al seleccionar */
.language-selector .dropdown-menu {
    min-width: 180px;
}
/* Toggler button - EXACTO */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 5px 10px !important;
    background: transparent !important;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) !important;
    }

.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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.2em !important;
    height: 1.2em !important;
}

/* Navbar collapse - EXACTO */
.navbar-collapse {
    background: rgba(139, 0, 0, 0.2) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 15px;
    margin-top: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* HERO SECTION - EXACTO */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 50%, var(--black) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.8) contrast(1.1) saturate(1.3);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 135deg, rgba(139, 0, 0, 0.4) 0%, rgba(90, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.4) 100% );
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 300;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

    .btn-primary:hover {
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 215, 0, 0.5);
    }

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }

/* Sección de Proyectos - EXACTO */
.section {
    padding: 80px 0;
    position: relative;
}

    .section.is--scroll-cards {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }

.section-heading {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Contenedor de tarjetas superpuestas - EXACTO */
.stacked-cards-container {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.stacked-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.stacked-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(139, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
}

    .stacked-card.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: all;
    }

.scroll_cards__card__left {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scroll-card__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

.scroll-card__grid-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

.scroll-card__heading {
    margin-bottom: 40px;
}

.scroll-card__tag-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Etiquetas de colores - EXACTO */
.tag-silver {
    background: linear-gradient(90deg, #C0C0C0 0%, #E8E8E8 100%);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.tag-yellow {
    background: linear-gradient(90deg, #FFD700 0%, #FFFF00 100%);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.tag-orange {
    background: linear-gradient(90deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

.m-32 {
    margin-bottom: 32px;
}

.text--xl {
    font-size: 1.3rem;
    line-height: 1.6;
}

.text--white-op-70 {
    color: rgba(255, 255, 255, 0.8);
}

.text--white {
    color: white;
}

.scroll-card__mid {
    margin-bottom: 40px;
}

.text--28 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.curve-seperator {
    width: 80%;
    margin: 20px 0;
    opacity: 0.3;
}

.scroll-card__bot {
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .button:hover {
        border-color: #FFD700;
        background: rgba(255, 215, 0, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    }

.button-text-wrap {
    position: relative;
    margin-right: 10px;
    height: 20px;
    overflow: hidden;
}

.button-text {
    transition: transform 0.3s ease;
}

    .button-text.hover {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(20px);
}

.button:hover .button-text.idle {
    transform: translateY(-20px);
}

.button:hover .button-text.hover {
    transform: translateY(0);
}

.button-icon-wrap {
    position: relative;
    width: 20px;
    height: 20px;
}

.button__icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    width: 20px;
    height: 20px;
}

    .button__icon.hover {
        opacity: 0;
    }

.button:hover .button__icon.idle {
    opacity: 0;
}

.button:hover .button__icon.hover {
    opacity: 1;
}

.scroll-card-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

    .scroll-card-img img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

.desktop {
    display: flex;
}

.mobile {
    display: none;
}

/* Indicador de progreso - EXACTO */
/* Estilos para los puntos de navegación con tooltips */
.progress-indicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Tooltip para mostrar el título */
.progress-dot::before {
    content: attr(data-title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.progress-dot:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Instrucciones */
.scroll-instructions {
    position: fixed;
    right: 40px;
    bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-arrow {
    color: #fff;
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Efectos de fondo adicionales - EXACTO */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Footer - EXACTO */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 0;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.social-links {
    margin-top: 20px;
}

    .social-links a {
        color: white;
        font-size: 1.5rem;
        margin: 0 10px;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            color: #FFD700;
            transform: translateY(-3px);
        }

/* ========= RESPONSIVE ========= */
/* EXACTAMENTE IGUAL A TU CÓDIGO ORIGINAL */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    .navbar-collapse {
        background: rgba(139, 0, 0, 0.3) !important;
    }

    /* Hero Section Responsive */
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-section {
        min-height: 80vh;
        padding: 100px 0 60px;
    }

    /* Sección de tarjetas - Versión móvil con scroll normal */
    .section.is--scroll-cards {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }

    .stacked-cards-container {
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .stacked-cards {
        height: auto;
        position: relative;
    }

    .stacked-card {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        height: auto;
        min-height: 80vh;
        margin-bottom: 30px;
        pointer-events: all;
        transition: transform 0.3s ease;
    }

        .stacked-card.active {
            transform: none;
        }

        .stacked-card:hover {
            transform: translateY(-5px);
        }

    .scroll-card-img {
        order: -1;
        padding: 20px 40px;
    }

    .desktop {
        display: none;
    }

    .mobile {
        display: flex;
    }

    .scroll_cards__card__left {
        padding: 30px;
    }

    .h3 {
        font-size: 1.8rem;
    }

    .h4 {
        font-size: 2rem;
    }

    .text--xl {
        font-size: 1.1rem;
    }

    .text--28 {
        font-size: 1rem;
    }

    .progress-indicator {
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }

    .progress-dot::after {
        display: none;
    }

    .section-heading {
        position: relative;
        top: auto;
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .scroll_cards__card__left {
        padding: 20px;
    }

    .scroll-card-img {
        padding: 20px;
    }

    .scroll-card__tag-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .tag-silver, .tag-yellow, .tag-orange {
        margin-bottom: 10px;
    }

    .section {
        padding: 40px 0;
    }

    .h4 {
        font-size: 1.5rem;
    }

    .progress-indicator {
        display: none;
    }

    .scroll-instructions {
        font-size: 14px;
        padding: 10px 20px;
        text-align: center;
    }

    /* Hero Section Mobile */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 250px;
        padding: 12px 30px;
    }

    .hero-section {
        min-height: 70vh;
        padding: 80px 0 40px;
    }

    .navbar-brand {
        font-size: 1.4rem !important;
    }

    .navbar-nav .nav-link {
        text-align: center;
        margin: 5px 0;
        padding: 12px 20px !important;
    }

    .dropdown-menu {
        background: rgba(0, 0, 0, 0.8) !important;
        text-align: center;
        border: none !important;
        margin: 10px 0 !important;
    }

    .stacked-card {
        height: auto;
        min-height: 70vh;
        margin-bottom: 20px;
    }

    .stacked-cards-container {
        padding: 0 10px;
    }
}

/* Optimizaciones de rendimiento - EXACTO */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mejora de rendimiento para animaciones */
.navbar, .dropdown-menu {
    will-change: transform, opacity;
}

/* Loading states */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}