/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-red: #8c364c;
    --color-teal: #449db3;
    --color-green: #6cba75;
    --bg-light: #f4f7f9;
    --text-main: #2d3748;
    --text-muted: #718096;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.carousel-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100vw;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.carousel-slide-vertical {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-snap-align: start; /* FIXED: this makes the horizontal carousel recognize it as a snap point */
    scroll-behavior: smooth;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.carousel-slide-vertical section {
    width: 100%;
    height: 100vh;
    min-height: 100vh !important;
    scroll-snap-align: start;
    position: relative;
    box-sizing: border-box;
}

section {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    min-height: 100vh !important;
    scroll-snap-align: start;
    position: relative;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: girarLogo 5s linear infinite;
}

@keyframes girarLogo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-teal);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-color: #ffffff;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: contain;
    object-position: top center;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Filtro blanco con un difuminado mucho más fuerte en la parte inferior */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 1) 100%);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text.right-aligned {
    flex: 0 1 500px;
    animation: slideInRight 1s ease-out;
    padding: 40px;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-main);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    background-color: #bae6fd;
    color: #0f172a;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(186, 230, 253, 0.4);
}

.btn-primary:hover {
    background-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 211, 252, 0.6);
}

/* Diamond Graphic CSS */
.hero-static-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}


/* Product Panels */
.product-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0;
    box-sizing: border-box;
}

/* Backgrounds for panels */
.panel-luma {
    background-image: url('wer.png');
    background-size: cover;
    background-position: center;
}

.panel-luma .panel-text {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.panel-mana {
    background-image: url('lo.png');
    background-size: cover;
    background-position: center;
}

.panel-mana .panel-text {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.panel-content-right {
    justify-content: flex-end;
}

.panel-salud {
    background-color: #f8fafc;
}

.panel-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.panel-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.text-left-img-right {
    flex-direction: row;
}

.img-left-text-right {
    flex-direction: row;
}

.panel-text {
    flex: 1;
}

.panel-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Product header inside panel */
.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.right-aligned-header {
    justify-content: flex-end;
}

.centered-header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.panel-product-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.icon-mana-large {
    width: 100px;
    height: 100px;
}

.product-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin: 0;
    font-weight: 700;
}

.panel-text h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Subtitle for Yape */
.subtitle-highlight {
    font-size: 1.6rem;
    color: #0369a1;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Black text for descriptions */
.desc-text-black {
    font-size: 1.1rem;
    color: #000000 !important;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* Image styles */
.mana-screenshot {
    max-width: 100%;
    max-height: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    object-fit: cover;
}

.luma-placeholder-graphic {
    background: #eef8fb;
    border-radius: 50%;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Align text to the right for Maná */
.text-right-align {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Contact Section */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background-color: var(--bg-light);
    box-sizing: border-box;
}

.contact h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.contact p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(186, 230, 253, 0.75); /* Celeste pastel translúcido */
    color: #0f172a;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-control:hover {
    background-color: rgba(125, 211, 252, 0.95); /* Celeste pastel hover */
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(125, 211, 252, 0.4);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

/* Indicators for vertical scrolling */
.scroll-down-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    background: rgba(186, 230, 253, 0.75);
    color: #0f172a;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.scroll-up-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    background: rgba(186, 230, 253, 0.75);
    color: #0f172a;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.scroll-down-indicator:hover,
.scroll-up-indicator:hover {
    background: rgba(125, 211, 252, 0.95);
    transform: translateX(-50%) rotate(90deg) scale(1.1);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #ffffff;
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid #e2e8f0;
}

/* Animations */
@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);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-image {
        margin-top: 50px;
        transform: scale(0.8);
    }

    .nav-links {
        display: none;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .panel-content {
        flex-direction: column !important;
        gap: 2rem;
    }

    .text-right-align {
        text-align: left;
    }

    .right-aligned-header {
        justify-content: flex-start;
        flex-direction: row-reverse;
    }
}