/* Importar Ubuntu (Tipografía oficial de la App) */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    /* Extraído de colors.js */
    --primary: #00a8c6;
    --primary-light: #40c0cb;
    --secondary: #aee239;
    --action: #8fbe00;
    --background: #0f172a;
    --surface: #1e293b;
    --on-surface: #f1f5f9;
    --secondary-text: #94a3b8;
    
    /* Gradientes de AppBackground.jsx y GradientButton.jsx */
    --grad-bg: linear-gradient(180deg, var(--background) 0%, var(--surface) 50%, var(--background) 100%);
    --grad-primary: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

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

body {
    font-family: 'Ubuntu', sans-serif;
    background: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== BACKGROUNDS ===== */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-bg);
    z-index: -2;
}

.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.parallax-layer::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

/* ===== GLASS CARD EFFECT ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 168, 198, 0.2);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 40px;
}

.main-logo {
    height: 50px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.navbar.scrolled .main-logo {
    opacity: 1;
    transform: scale(1);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 20px;
    position: relative;
}

.hero-logo-large {
    margin-bottom: 30px;
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s ease;
}

.hero-logo-large.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
}

.hero-logo {
    height: 100px;
    filter: drop-shadow(0 10px 30px rgba(0, 168, 198, 0.3));
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-container {
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TYPOGRAPHY ===== */
.themed-text.title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.themed-text.title span {
    color: var(--primary);
}

.themed-text.subtitle {
    color: var(--secondary-text);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
}

.themed-text.body {
    color: var(--secondary-text);
    font-size: 1rem;
}

/* ===== BUTTONS ===== */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.gradient-button {
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.gradient-button.primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0px 8px 15px rgba(0, 168, 198, 0.3);
}

.gradient-button.primary:hover {
    box-shadow: 0px 12px 20px rgba(0, 168, 198, 0.4);
    transform: translateY(-2px);
}

.gradient-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.gradient-button.secondary:hover {
    background: rgba(0, 168, 198, 0.1);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 100px 20px;
    position: relative;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary);
}

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

.icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.features-grid .glass-card h3 {
    color: var(--secondary);
    margin: 15px 0;
    font-size: 1.5rem;
}

/* ===== CTA FINAL SECTION ===== */
.cta-final {
    padding: 80px 20px;
    margin: 40px 0;
}

.glass-card.highlight {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.glass-card.highlight h2 {
    margin-bottom: 20px;
}

.glass-card.highlight p {
    margin-bottom: 30px;
}

.store-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-link img {
    height: 50px;
    transition: transform 0.3s ease;
}

.store-link:hover img {
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--surface);
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(0, 168, 198, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

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

.footer-column a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-column p {
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.slogan {
    color: var(--secondary-text);
    font-style: italic;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .navbar.scrolled {
        padding: 10px 20px;
    }

    .main-logo {
        height: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        align-items: center;
    }

    .hero-logo {
        height: 100px;
    }

    .social-links {
        align-items: center;
    }
    
    .social-btn {
        min-width: 160px;
    }
}
/* ===== STORE BUTTONS ===== */
.store-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    border: 2px solid transparent;
}

/* Google Play Button */
.store-btn.google-play {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: transparent;
    color: white;
}

.store-btn.google-play:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 10px 25px rgba(0, 168, 198, 0.4);
    transform: translateY(-3px);
}

/* App Store Button */
.store-btn.app-store {
    background: linear-gradient(135deg, var(--action) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: var(--background);
}

.store-btn.app-store:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--action) 100%);
    box-shadow: 0 10px 25px rgba(174, 226, 57, 0.4);
    transform: translateY(-3px);
}

/* Store Icon */
.store-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-icon svg {
    width: 100%;
    height: 100%;
}

/* Store Text */
.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.store-label {
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

/* Store link (alternativo) */
.store-link img {
    height: 50px;
    transition: transform 0.3s ease;
}

.store-link:hover img {
    transform: scale(1.1);
}

/* Responsive Store */
@media (max-width: 480px) {
    .store-btn {
        min-width: 160px;
        padding: 10px 20px;
    }
    
    .store-icon {
        width: 28px;
        height: 28px;
    }
    
    .store-label {
        font-size: 0.65rem;
    }
    
    .store-name {
        font-size: 1rem;
    }
}
/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.03);
}

.social-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Instagram */
.social-btn.instagram {
    color: var(--secondary-text);
    border-color: transparent;
}

.social-btn.instagram:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 168, 198, 0.3);
    transform: translateX(5px);
}

.social-btn.instagram:hover .social-icon {
    transform:scale(1.1);
}

/* Facebook */
.social-btn.facebook {
    color: var(--secondary-text);
    border-color: transparent;
}

.social-btn.facebook:hover {
    background: linear-gradient(135deg, var(--action) 0%, var(--secondary) 100%);
    color: var(--background);
    border-color: var(--action);
    box-shadow: 0 5px 15px rgba(143, 190, 0, 0.3);
    transform: translateX(5px);
}

.social-btn.facebook:hover .social-icon {
    transform: scale(1.1);
}

/* TikTok */
.social-btn.tiktok {
    color: var(--secondary-text);
    border-color: transparent;
}

.social-btn.tiktok:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    color: var(--background);
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(64, 192, 203, 0.3);
    transform: translateX(5px);
}

.social-btn.tiktok:hover .social-icon {
    transform: rotate(-10deg) scale(1.1);
}
/* ===== BACKGROUNDS ===== */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-bg);
    z-index: -2;
}

/* ===== FEATURES SECTION CON FONDO DE IMAGEN TENUE ===== */
.features {
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/d2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax */
    opacity: 0.05; /* Muy tenue, casi imperceptible */
    z-index: -1;
    border-radius: 20px; /* Opcional: para bordes suaves */
}

.features .container {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté por encima del fondo */
}

/* Asegúrate que el gradiente de fondo no tape la imagen */
.features .glass-card {
    background: rgba(255, 255, 255, 0.08); /* Ajusta opacidad según necesites */
}


/* ===== CTA FINAL SECTION CON FONDO DE IMAGEN TENUE ===== */
.cta-final {
    padding: 80px 20px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.cta-final::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/d2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax si quieres */
    opacity: 0.05; /* Muy tenue, casi imperceptible */
    z-index: -1;
    border-radius: 20px; /* Opcional: para que se ajuste al glass-card */
}

.glass-card.highlight {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2; /* Asegura que el contenido esté por encima del fondo */
    background: rgba(255, 255, 255, 0.08); /* Ajusta opacidad si es necesario */
}
/* ===== FEATURES CARDS CON IMÁGENES DE FONDO ===== */
.features-grid .glass-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* Imagen de fondo difuminada */
.feature-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    opacity: 0.15;
    transition: all 0.5s ease;
    z-index: 1;
}

/* Contenido sobre la imagen */
.feature-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* Imágenes específicas para cada card */
.feature-organiza .feature-bg-image {
    background-image: url('../assets/img/calendar.jpg');
}

.feature-encuentra .feature-bg-image {
    background-image: url('../assets/img/map.png');
}

.feature-comunidad .feature-bg-image {
    background-image: url('../assets/img/hands.jpg');
}

/* Efectos hover/touch */
.glass-card:hover .feature-bg-image,
.glass-card:active .feature-bg-image {
    filter: blur(0px);
    opacity: 0.4;
    transform: scale(1.1);
}

/* Animación del icono en hover */
.glass-card .icon {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.glass-card:hover .icon,
.glass-card:active .icon {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 5px 15px rgba(0, 168, 198, 0.5);
}

/* Mejora del borde en hover */
.glass-card:hover,
.glass-card:active {
    border-color: rgba(0, 168, 198, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid .glass-card {
        min-height: 250px;
    }
    
    .feature-bg-image {
        filter: blur(6px);
        opacity: 0.12;
    }
    
    .glass-card:hover .feature-bg-image,
    .glass-card:active .feature-bg-image {
        filter: blur(3px);
        opacity: 0.2;
    }
}
/* Overlay de color sobre las imágenes */
.feature-bg-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.feature-organiza .feature-bg-image::after {
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0.3;
}

.feature-encuentra .feature-bg-image::after {
    background: linear-gradient(135deg, var(--action) 0%, transparent 100%);
    opacity: 0.3;
}

.feature-comunidad .feature-bg-image::after {
    background: linear-gradient(135deg, var(--secondary) 0%, transparent 100%);
    opacity: 0.3;
}

.glass-card:hover .feature-bg-image::after,
.glass-card:active .feature-bg-image::after {
    opacity: 0.5;
}

/* ===== NAV MENU ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
    margin-right: 20px;
}

.nav-link {
    color: var(--on-surface);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--on-surface);
    transition: all 0.3s ease;
}

/* Responsive Nav */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
        max-width: none;
    }
}

/* ===== COMUNIDAD / RESEÑAS ===== */
.comunidad {
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

.comunidad::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/hands.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
    z-index: -1;
    border-radius: 20px;
}

.comunidad .container {
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin-bottom: 50px;
    margin-top: -30px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
}

.review-stars {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.review-text {
    color: var(--on-surface);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.review-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    color: var(--on-surface);
    font-weight: 600;
    font-size: 1rem;
}

.review-role {
    color: var(--secondary-text);
    font-size: 0.85rem;
}

/* ===== EFECTO DE APARICIÓN (FADE IN) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive reviews */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* ===== MODAL PROXIMAMENTE ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-proximamente {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(0, 168, 198, 0.3);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 40px rgba(0, 168, 198, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-proximamente {
    transform: scale(1);
}

.modal-proximamente h3 {
    color: var(--primary-light);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-proximamente p {
    color: var(--on-surface);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.modal-close-btn {
    background: var(--grad-primary);
    color: var(--background);
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Ubuntu', sans-serif;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 168, 198, 0.4);
}