:root {
    /* Brand Colors */
    --primary: #00aca6;
    --primary-80: rgba(0, 172, 166, 0.8);
    --primary-60: rgba(0, 172, 166, 0.6);
    --primary-40: rgba(0, 172, 166, 0.4);
    --primary-20: rgba(0, 172, 166, 0.2);
    --primary-10: rgba(0, 172, 166, 0.1);
    
    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #f9fbfb;
    --white: #ffffff;
    --black: #000000;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 120px;
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 172, 166, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

h1 span {
    color: var(--primary);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px var(--primary-40);
}

.btn-primary:hover {
    background-color: #009691;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-60);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--primary-20);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-10);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 85px; /* Adapting the provided logo */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 60px) 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-10) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--primary-10);
    border-radius: 20px;
    border-left: 5px solid var(--primary);
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Features/Pilares */
.features {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-20);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--primary-10);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background-color: var(--primary);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta h2, .cta p {
    color: var(--white);
}

.cta-btn {
    background-color: var(--white);
    color: var(--primary);
    margin-top: 20px;
}

.cta-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 2rem;
    letter-spacing: -1px;
}

.footer-brand p {
    color: #aaaaaa;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: #aaaaaa;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-size: 0.9rem;
}

/* Animations (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Join Us Section */
.join-us {
    padding: 30px 0;
    background-color: var(--white);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.join-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--primary-10);
    border-radius: 15px;
    padding: 25px 30px;
    border: 1px solid var(--primary-20);
    box-shadow: var(--shadow-sm);
}

.join-content h2 {
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.8rem;
}

.join-content p {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.4;
}

.join-requirements {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.join-requirements h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.join-requirements ul {
    list-style: none;
}

.join-requirements li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.join-requirements li i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
}

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

/* Video Modal Styles */
.sewa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sewa-modal.active {
    opacity: 1;
    visibility: visible;
}

.sewa-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    max-height: 600px;
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.1);
}

.sewa-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.scene-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.scene-image.active {
    opacity: 1;
}

/* Ken Burns effect */
.scene-image.zoom-in {
    animation: kenBurns 6s linear forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 10;
}

.video-text-container {
    position: absolute;
    bottom: 80px;
    left: 50px;
    right: 50px;
    z-index: 20;
    text-align: center;
}

.video-text {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: opacity 0.5s ease;
}

.video-text-sub {
    color: #f0f0f0;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: opacity 0.5s ease;
}

.video-final-cta {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-final-cta.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px);
}

.video-final-cta.fade-in-up {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(255,255,255,0.2);
    z-index: 20;
}

.video-progress {
    height: 100%;
    width: 0%;
    background-color: var(--primary);
}

.audio-btn {
    position: absolute;
    top: 25px;
    left: 30px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.audio-btn:hover {
    background: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .sewa-modal-content {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .video-text-container {
        left: 20px;
        right: 20px;
        bottom: 60px;
    }
    .close-modal {
        top: 15px;
        right: 20px;
    }
    .audio-btn {
        top: 15px;
        left: 20px;
    }
}

/* CSS Phone Mockup */
.css-phone-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 15;
}

.css-phone-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.css-phone {
    width: 260px;
    height: 520px;
    border: 12px solid #222;
    border-radius: 40px;
    background: var(--primary); /* Teal SEWA */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* El "Notch" o cámara del celular */
.css-phone::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #222;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 2;
}

/* Botón lateral simulado */
.css-phone::after {
    content: '';
    position: absolute;
    top: 100px;
    right: -14px;
    width: 3px;
    height: 40px;
    background: #222;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.css-phone-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.css-phone-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 24px; /* Estilo de ícono de app iOS */
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

@media (max-width: 768px) {
    .css-phone {
        width: 220px;
        height: 440px;
        border-width: 10px;
    }
    .css-phone::before {
        width: 100px;
        height: 20px;
    }
    .css-phone-screen {
        font-size: 2.8rem;
    }
    .css-phone-container {
        top: 40%;
    }
}
