/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #120a23;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

a:hover {
    color: #50e3c2;
}

/* Colorful Side Decoration */
.colorful-side {
    position: absolute;
    left: 0;
    bottom: -30px;
    height: 45%;
    z-index: 35;
    pointer-events: none;
}

.colorful-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    /* Proporción exacta: altura = 41.67% del ancho (800/1920 = 0.4167) */
    height: 41.67vw;
    max-height: 800px; /* Altura máxima para pantallas grandes */
    min-height: 450px; /* Altura mínima para garantizar usabilidad */
    z-index: 30;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 31;
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.light-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.light-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 32;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 5vh;
    max-width: 60%;
}

.logo {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.character {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 40%;
    max-width: 450px;
    height: 90%;
    display: flex;
    align-items: flex-end;
}

.character-img {
    height: 90%;
    width: auto;
    object-fit: contain;
}

.download-buttons {
    display: flex;
    gap: 20px;
    margin-top: calc(5vh - 60px); /* Reducido en 40px para mover los botones aún más hacia arriba */
}

.app-btn {
    width: 25vh;
    height: 6.9vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.app-btn:hover {
    transform: translateY(-5px);
}

.btn-normal {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.btn-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-btn:hover .btn-normal {
    opacity: 0;
}

.app-btn:hover .btn-hover {
    opacity: 1;
}

.app-btn span {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.app-btn small {
    font-size: 0.7em;
}

/* Features Section */
.features {
    
    background: linear-gradient(to bottom, #120a23, #1a0e35);
    position: relative;
    z-index: 25;
    overflow: hidden;
}

.feature-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 26;
    background-image: url('images/second_screen/auth_bg_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    position: relative;
}

/* Estilos del carrusel de tarjetas */
.card-carousel-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    margin: 0 auto;
    z-index: 5;
    perspective: none;
}

.card-carousel-wrapper {
    width: 100%;
    height: 450px;
    position: relative;
    margin: 0 auto;
    perspective: none;
}

.card-carousel-stage {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: flat;
    transition: transform 0.6s ease;
}

.card-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: flat;
    transition: all 0.6s ease;
    opacity: 0.4;
    visibility: visible;
    transform: translateX(0) translateY(70px) scale(0.5);
}

.card-carousel-item.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    z-index: 10;
}

.card-carousel-item.prev {
    opacity: 0.7;
    transform: translateX(-20%) translateY(30px) scale(0.5);
    z-index: 5;
}

.card-carousel-item.next {
    opacity: 0.7;
    transform: translateX(20%) translateY(30px) scale(0.5);
    z-index: 5;
}

.card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: flat;
    padding: 0 50px;
}

.card-decoration {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.6s ease;
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.card-carousel-item.active .card-decoration {
    opacity: 1;
    width: auto;
}

.card-decoration.left {
    transform: scaleX(-1) translateX(-20px);
}

.card-carousel-item.active .card-decoration.left {
    transform: scaleX(-1) translateX(0);
    margin-right: 5px;
}

.card-decoration.right {
    transform: translateX(-20px);
}

.card-carousel-item.active .card-decoration.right {
    transform: translateX(0);
    margin-left: 5px;
}

.card-decoration img {
    height: auto;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.card-main {
    width: 85%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
   
    transition: all 0.6s ease;
    transform-style: flat;
}

.card-carousel-item.active .card-main {
   
}

/* .card-main::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    pointer-events: none;
    background-image: url('images/second_screen/auth_comp_4.png');
} */

.card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-caption {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    text-align: right;
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.card-carousel-item.active .card-caption {
    transform: translateY(0);
}

.card-caption h5 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-caption p {
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Botones de navegación a ambos lados del carrusel */
.carousel-nav-btn {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    width:1.5rem;
    align-items: center;
    justify-content: center;
    z-index: 40;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-nav-btn.prev-btn {
    left: 15%;
}

.carousel-nav-btn.next-btn {
    right: 15%;
}

.carousel-nav-btn img {
    width: 100%;
    height: 100%;
    
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover img {
    transform: scale(1.1);
}

/* Indicadores en la parte inferior */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 30;
}

.indicator {
    width: 25px;
    height: 8px !important;
    cursor: pointer;
    background-color: rgba(199, 199, 199, 0.7) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 37px;
    height: 8px !important;
    background-color: rgba(165, 249, 249, 0.9) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .card-carousel-container {
        width: 85%;
    }
    
    .card-carousel-wrapper {
        height: 400px;
    }
    
    .card-main {
        width: 70%;
    }
    
    .carousel-nav-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    /* Ajustar feature-container */
    .feature-container {
        padding: 25px 15px;
    }
    
    .card-carousel-container {
        width: 90%;
        padding: 20px 0;
    }
    
    .card-carousel-wrapper {
        height: 320px;
    }
    
    .card-main {
        width: 80%;
    }
    
    .carousel-nav-btn {
        width: 30px;
        height: 30px;
    }
    
    .card-carousel-item.prev {
        transform: translateX(-20%) translateY(20px) scale(0.5);
    }
    
    .card-carousel-item.next {
        transform: translateX(20%) translateY(20px) scale(0.5);
    }
    
    /* Reducir drásticamente el tamaño de botones para tablets */
    .download-buttons {
        gap: 8px;
        margin-top: 0;
    }
    
    .app-btn {
        width: 100px;
        height: 34px;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 270px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .character {
        width: 45%;
        height: 70%;
        right: 0;
    }
    
    .logo-container {
        max-width: 85%;
        margin-bottom: 1vh;
    }
    
    /* Botones mucho más pequeños para móviles */
    .download-buttons {
        flex-direction: row;
        gap: 6px;
        margin-top: 0;
    }
    
    .app-btn {
        width: 80px;
        height: 27px;
    }
    
    /* Reducir altura de feature-container */
    .feature-container {
        padding: 20px 10px;
    }
    
    .card-carousel-container {
        width: 95%;
        padding: 15px 0;
    }
    
    .card-carousel-wrapper {
        height: 230px;
    }
    
    .card-inner {
        padding: 0 30px;
    }
    
    .card-decoration {
        display: none;
    }
    
    .carousel-nav-btn {
        width: 20px;
        height: 20px;
        margin: 0 -5px;
    }
    
    .carousel-nav-btn.prev-btn {
        left: 3%;
    }
    
    .carousel-nav-btn.next-btn {
        right: 3%;
    }
    
    .card-caption {
        padding: 10px;
    }
    
    .card-caption h5 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    .card-caption p {
        font-size: 1rem;
    }
    
    .feature-items {
        flex-direction: column;
    }
    
    .feature-item {
        min-width: 100%;
    }
    
    .colorful-side {
        height: 25%;
        bottom: -10px;
    }
    
    .indicator {
        width: 20px;
        height: 6px !important;
        border-radius: 3px !important;
    }
    
    .indicator.active {
        width: 30px;
        height: 6px !important;
        border-radius: 3px !important;
    }
    
    .carousel-indicators {
        gap: 10px;
    }
    
    /* Asegurar que los enlaces del footer están centrados en móviles */
    .agreements {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .zh-links, .en-links {
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .company-info p {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .hero {
        min-height: 250px;
    }
    
    .logo-container {
        max-width: 90%;
        margin-bottom: 0.5vh;
    }
    
    .character {
        width: 40%;
        height: 65%;
    }
    
    /* Botones extremadamente pequeños para teléfonos muy pequeños */
    .download-buttons {
        gap: 5px;
    }
    
    .app-btn {
        width: 70px;
        height: 24px;
    }
    
    /* Reducir aún más el feature-container */
    .feature-container {
        padding: 15px 5px;
    }
    
    .card-carousel-container {
        padding: 10px 0;
    }
    
    .card-carousel-wrapper {
        height: 180px;
    }
    
    .card-inner {
        padding: 0 15px;
    }
    
    .card-main {
        width: 95%;
    }
    
    .carousel-nav-btn {
        width: 15px;
        height: 15px;
    }
    
    .carousel-nav-btn.prev-btn {
        left: 1%;
    }
    
    .carousel-nav-btn.next-btn {
        right: 1%;
    }
    
    .carousel-indicators {
        gap: 8px;
        margin-top: 10px;
    }
    
    footer {
        padding: 20px 0;
    }
    
    .agreements {
        margin-bottom: 8px;
    }
    
    .agreements a {
        font-size: 0.8rem;
        margin: 0 5px;
        text-align: center;
    }
    
    .email-container p {
        font-size: 0.8rem;
    }
    
    .company-info p {
        font-size: 0.7rem;
    }
    
    .copyright {
        font-size: 0.7rem;
        text-align: center;
    }
}

/* Orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 200px;
    }
    
    .logo-container {
        margin-bottom: 1vh;
        max-width: 50%;
    }
    
    .character {
        height: 85%;
        width: 25%;
    }
    
    .download-buttons {
        margin-top: 0;
        flex-direction: row;
        gap: 6px;
    }
    
    .app-btn {
        width: 80px;
        height: 27px;
    }
    
    /* Reducir feature-container en landscape */
    .feature-container {
        padding: 10px 5px;
    }
    
    .card-carousel-container {
        padding: 5px 0;
    }
    
    .card-carousel-wrapper {
        height: 160px;
    }
    
    .carousel-nav-btn {
        width: 18px;
        height: 18px;
    }
    
    .carousel-nav-btn.prev-btn {
        left: 2%;
    }
    
    .carousel-nav-btn.next-btn {
        right: 2%;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.section-title p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Estilos del footer */
footer {
    padding: 30px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 20;
}

.agreements {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    text-align: center;
}

.zh-links, .en-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

.agreements a {
    margin: 0 10px;
    transition: color 0.3s ease;
    text-align: center;
}

.email-container {
    margin-bottom: 10px;
    text-align: center;
}

.email-container p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.email-container a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-container a:hover {
    color: #50e3c2;
}

.company-info {
    margin-bottom: 10px;
    text-align: center;
}

.company-info p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 2px 0;
    line-height: 1.4;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
} 