
:root {
    --finpy-dark-blue: #005F73;
    --finpy-teal: #94D2BD;
    --finpy-light-gray: #E9ECEF;
    --finpy-white: #FFFFFF;
    --finpy-accent: #FFD166;

    --bs-primary: var(--finpy-dark-blue);
    --bs-secondary: var(--finpy-teal);
    --bs-light: var(--finpy-light-gray);
    --bs-warning: var(--finpy-accent);
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--finpy-white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.chart-loader {
    display: flex;
    align-items: flex-end;
    height: 60px;
}

.chart-loader .bar {
    width: 12px;
    height: 10px;
    margin: 0 4px;
    background-color: var(--finpy-dark-blue);
    animation: grow 1.2s infinite ease-in-out;
}

.chart-loader .bar:nth-child(2) { animation-delay: 0.1s; background-color: var(--finpy-teal); }
.chart-loader .bar:nth-child(3) { animation-delay: 0.2s; }
.chart-loader .bar:nth-child(4) { animation-delay: 0.3s; background-color: var(--finpy-teal); }

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes grow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(5); } }

body {
    background-color: var(--finpy-light-gray);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    position: relative; 
    background-color: #0dcaf0 !important; 
    z-index: 20; 
}

.navbar-brand {
    font-weight: bold; 
}

.hero-section { 
    position: relative;
    color: var(--finpy-white);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content-container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    color: var(--finpy-white);
    font-weight: 600;
}

.hero-text-col {
    text-align: left;
}

.hero-social-icons a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.hero-social-icons a:hover {
    color: var(--finpy-accent) !important;
    transform: scale(1.1);
}

#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 95, 115, 0.5);
    z-index: 2;
}

.video-sound-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: var(--finpy-white);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.features-section {
    background-color: var(--finpy-light-gray);
}

.features-section .card {
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.features-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-content {
    border: none;
}

.modal-header {
    background-color: var(--finpy-dark-blue);
    color: var(--finpy-white);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.plan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.webpay-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px; 
    aspect-ratio: 9 / 16; 
    border-radius: 1.5rem !important; 
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background-color: #000;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.video-poster {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-text-overlay {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.4); 
}

.hero-video-wrapper.video-loaded .video-poster {
    opacity: 0; 
}

.hero-ribbon {
    position: absolute;
    width: 500px;
    height: 100px;
    background-color: var(--bs-danger);
    top: 30px;
    left: -150px;
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.hero-ribbon .ribbon-text {
    color: white;
    font-size: 20px; /* Ajustado para dos líneas */
    font-weight: 700;
    font-style: italic; /* Añadido para destacar */
    text-transform: uppercase;
    padding: 0 20px; /* Evita que el texto toque los bordes al girar */
    line-height: 1.1; /* Reduce el espacio entre líneas */
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 11;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 5rem;
}

.play-button-overlay:hover {
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.language-selector a {
    display: block;
    padding: 0.25rem;
}

.language-selector .flag-icon {
    width: 2rem;    /* Ancho fijo para uniformidad */
    height: 1.5rem; /* Altura fija para uniformidad */
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    border-radius: 3px;
}

.language-selector a:not(.active) {
    opacity: 0.6;
}

.language-selector a:not(.active):hover {
    opacity: 1;
}

.language-selector a.active {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .hero-ribbon {
        width: 300px;
        height: 70px;
        left: -95px;
        top: 20px;
    }
    .hero-ribbon .ribbon-text {
        font-size: 16px;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto; 
        padding: 4rem 0;
    }
    .hero-text-col {
        text-align: center; 
        margin-bottom: 2rem;
    }
    .hero-social-icons a i {
        font-size: 2.5rem; /* Reducimos el tamaño de los íconos en móvil */
    }
}

/* Sección de Pago */
#pago {
    background-color: #0dcaf0;
}

/* 8. Footer */
#footer {
    background-color: var(--finpy-dark-blue); /* #005F73 */
}
