:root {
    --turquesa: #00c2cb;
    --naranja: #ff6f00;
    --fondo: #fcfcfc;
    --blanco: #ffffff;
    --oscuro: #2d3436;
}

/* --- CLAVE PARA EL SCROLL SUAVE --- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--fondo);
    color: var(--oscuro);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* --- ANIMACIÓN DE LATIDO (PULSE) --- */
.beating-logo {
    height: 85px; 
    cursor: pointer;
    transition: all 3.3s ease;
    /* Aplicamos la animación de latido */
    animation: heartbeat 5s ease-in-out infinite;
    transform-origin: center;
}

/* Definición del latido */
@keyframes heartbeat {
    0% {
        transform: scale(2);
    }
    14% {
        transform: scale(1.5); /* Crece un poco */
    }
    28% {
        transform: scale(2); /* Vuelve al tamaño original */
    }
    42% {
        transform: scale(1.5); /* Segundo latido (efecto bumbum) */
    }
    70% {
        transform: scale(2); /* Pausa en el tamaño original */
    }
}

/* Efecto al pasar el mouse: el latido se vuelve más rápido y enérgico */
.beating-logo:hover {
    animation-duration: 3.8s; 
    filter: drop-shadow(0 0 15px rgba(0, 194, 203, 0.4));
}

/* Estilo base de los enlaces del menú */
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--oscuro);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block; /* Necesario para que el transform funcione */
    transition: all 0.3s ease; /* Transición suave para todos los efectos */
}

/* EFECTO AL PASAR EL MOUSE (HOVER) */
nav a:hover {
    color: var(--turquesa);
    /* Sombra de texto suave para dar profundidad */
    text-shadow: 2px 4px 10px rgba(0, 194, 203, 0.3); 
    /* Pequeño movimiento hacia arriba */
    transform: translateY(-2px); 
}

.nav-btn {
    background: var(--naranja);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
}

/* Secciones Generales */
.section-padding {
    padding: 100px 20px;
    text-align: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.alt-bg {
    background-color: #f0fafa; /* Un tono turquesa muy muy suave */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--oscuro);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #7fdfe2 0%, #ffffff 100%);
}

.hero h1 { font-size: 3.8rem; margin-bottom: 20px; }
.hero h1 span { color: var(--turquesa); }
.hero p { font-size: 1.2rem; color: #636e72; max-width: 600px; margin: 0 auto 40px; }

.btn-primary {
    background: var(--turquesa);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 194, 203, 0.2);
}

/* Cards de Funcionalidad */
.features-grid {
    display: grid;
    /* Ajustamos el minmax a 240px para que las 4 entren cómodamente en una fila en PC */
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: var(--blanco);
    padding: 35px 25px; /* Ajustamos un poco el padding */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0; /* Un borde sutil para que resalten más */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 194, 203, 0.15); /* Sombra turquesa al pasar el mouse */
}

.feature-card .icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: block;
}

/* Stats de Comunidad */
.community-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--naranja);
}

footer {
    padding: 40px;
    background: #2d3436;
    color: white;
    text-align: center;
}

/* Estilos para Redes Sociales */
.social-links {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.social-links h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--oscuro);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    text-decoration: none;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Colores específicos */
.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook {
    background-color: #1877F2;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: white; /* Asegura que el texto siga blanco */
}

.social-btn i {
    font-size: 1.2rem;
}
/* Estilo para el botón del menú (ajuste para que el link funcione con scroll) */
.nav-btn-link {
    background-color: var(--naranja) !important;
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s;
}

.nav-btn-link:hover {
    transform: scale(1.05);
    background-color: #e66400 !important;
    text-shadow: none !important; /* Quitamos la sombra de texto aquí para que se vea limpio */
}

/* Sección Descargar */
.download-box {
    background: linear-gradient(135deg, var(--turquesa) 0%, #00a8af 100%);
    padding: 60px 20px;
    border-radius: 30px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 194, 203, 0.2);
}

.download-box h2 {
    color: white;
    margin-bottom: 10px;
}

.download-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    background: #000; /* Botones negros estilo oficial */
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.store-btn:hover {
    transform: translateY(-5px);
    background: #222;
}

.store-btn i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-text span {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.btn-text strong {
    font-size: 1.2rem;
}

/* --- ESTILOS DEL CARRUSEL --- */
.carousel-container {
    position: relative;
    max-width: 320px; /* Tamaño ideal para simular un celular */
    margin: 40px auto;
    overflow: visible;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 8px solid #2d3436; /* Simula el marco de un teléfono */
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 550px; /* Altura para que parezca un smartphone */
    background-color: #eee; /* Fondo mientras cargan las fotos */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flechas */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--turquesa);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.carousel-prev { left: -60px; }
.carousel-next { right: -60px; }

.carousel-prev:hover, .carousel-next:hover {
    background: var(--naranja);
    transform: translateY(-50%) scale(1.1);
}

/* Bolitas de abajo */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--turquesa);
    width: 25px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    .carousel-container { max-width: 280px; }
}

/* --- ESTILOS RESPONSIVE PARA EL HEADER --- */

/* Ocultar el icono de hamburguesa por defecto en PC */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--turquesa);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Aparece en móviles */
    }

    nav {
        position: absolute;
        top: 80px; /* Debajo del header */
        right: -100%; /* Escondido a la derecha */
        background-color: white;
        width: 100%;
        height: calc(100vh - 80px); /* Ocupa el resto de la pantalla */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.4s ease; /* Deslizamiento suave */
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    /* Clase que activaremos con JS para mostrar el menú */
    nav.active {
        right: 0;
    }

    nav a {
        margin: 20px 0 !important;
        font-size: 1.3rem !important;
    }

    .nav-btn-link {
        width: 80%;
        text-align: center;
    }
}