/* =========================================
   TEMPLATE: VITALITY (Modern Health Tech)
   ========================================= */

:root {
    /* Paleta de Colores Fresca */
    --mint: #10b981;       /* Verde Menta Principal */
    --mint-dark: #059669;  /* Menta Oscuro */
    --mint-light: #d1fae5; /* Fondo Suave */
    --dark: #1f2937;       /* Gris Casi Negro */
    --gray: #6b7280;       /* Gris Texto */
    --white: #ffffff;
    --bg-soft: #f9fafb;
    
    /* Tipografía */
    --font: 'Plus Jakarta Sans', sans-serif;
    
    /* Efectos */
    --shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
    --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--bg-soft);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- 1. NAVBAR FLOTANTE (GLASSMORPHISM) --- */
.glass-nav {
    position: fixed; top: 20px; left: 0; right: 0;
    width: 90%; max-width: 1100px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.brand { font-size: 1.5rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.dot { color: var(--mint); }

.nav-links { display: flex; gap: 30px; display: none; /* Oculto en móvil por defecto */ }
@media(min-width: 768px) { .nav-links { display: flex; } }

.nav-links a { font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--mint); }

.btn-nav {
    background: var(--dark); color: var(--white);
    padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.btn-nav:hover { background: var(--mint); transform: translateY(-2px); }

/* --- 2. HERO SECTION --- */
.hero-modern { padding-top: 140px; padding-bottom: 80px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.tag {
    background: var(--mint-light); color: var(--mint-dark);
    padding: 8px 16px; border-radius: 30px; font-weight: 700; font-size: 0.85rem;
    display: inline-block; margin-bottom: 24px;
}

.hero-text h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.highlight { color: var(--mint); position: relative; }
.hero-text p { font-size: 1.15rem; color: var(--gray); margin-bottom: 40px; max-width: 90%; }

/* Estadísticas Rápidas */
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.stat-item { display: flex; flex-direction: column; }
.stat-item strong { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.stat-item span { font-size: 0.9rem; color: var(--gray); }

.cta-group { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { padding: 16px 32px; border-radius: 12px; font-weight: 700; transition: 0.3s; text-align: center; }
.btn-primary { background: var(--mint); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--mint-dark); transform: translateY(-3px); }
.btn-secondary { background: white; border: 2px solid #eee; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.btn-secondary:hover { border-color: var(--dark); }

/* Imagen con Forma Orgánica */
.hero-image-wrapper { position: relative; text-align: center; }
.hero-img {
    width: 90%; border-radius: 40px; position: relative; z-index: 2;
    mask-image: linear-gradient(black 80%, transparent 100%); /* Desvanecido abajo */
}
.blob {
    position: absolute; top: 10%; right: 0; width: 100%; height: 90%;
    background: var(--mint-light); z-index: 1; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Tarjeta Flotante */
.float-card {
    position: absolute; bottom: 50px; left: -20px; z-index: 3;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
    padding: 15px 25px; border-radius: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid white;
    animation: float 4s ease-in-out infinite;
}
.float-card i { font-size: 2rem; color: #ef4444; }
.float-card h5 { font-size: 1rem; margin: 0; }
.float-card small { color: var(--mint-dark); font-weight: 700; font-size: 0.8rem; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- 3. BENTO GRID (SERVICIOS) --- */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.text-mint { color: var(--mint); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 24px;
}

.bento-item {
    background: white; border-radius: var(--radius); padding: 30px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.3s; border: 1px solid #f0f0f0; position: relative; overflow: hidden;
}
.bento-item:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.bento-item i { font-size: 2.5rem; color: var(--mint); margin-bottom: 15px; display: block; }
.bento-item h3 { font-size: 1.4rem; margin-bottom: 10px; }
.bento-item p { color: var(--gray); font-size: 0.95rem; }

/* Modificadores de Grid */
.large { grid-column: span 1; grid-row: span 2; } /* Columna vertical alta */
.wide { grid-column: span 2; display: flex; flex-direction: row; align-items: center; } /* Horizontal ancha */
.wide .content { z-index: 2; }
.wide .icon-bg { position: absolute; right: -20px; bottom: -20px; font-size: 10rem !important; opacity: 0.1; }

.bg-mint { background: var(--mint); color: white; border: none; }
.bg-mint i, .bg-mint p { color: rgba(255,255,255,0.9); }
.arrow-link {
    width: 40px; height: 40px; background: white; color: var(--mint);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-top: 20px; font-size: 1.2rem;
}

/* --- 4. BANNER CTA --- */
.banner-cta { padding: 50px 0; }
.banner-content {
    background: var(--dark); color: white;
    border-radius: 40px; padding: 60px; text-align: center;
    position: relative; overflow: hidden;
}
.banner-content h2 { font-size: 2.5rem; margin-bottom: 15px; }
.btn-white { background: white; color: var(--dark); margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 15px 35px; border-radius: 50px; font-weight: 700; transition: 0.3s; }
.btn-white:hover { transform: scale(1.05); }

/* --- 5. FOOTER --- */
footer { padding: 60px 0 30px; background: white; border-top: 1px solid #f0f0f0; margin-top: 50px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-links { display: flex; gap: 30px; }
.footer-links a { font-weight: 600; color: var(--gray); transition: 0.3s; }
.footer-links a:hover { color: var(--mint); }
.copy { text-align: center; font-size: 0.9rem; color: #ccc; border-top: 1px solid #f9f9f9; padding-top: 30px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .cta-group { justify-content: center; }
    .hero-img { width: 80%; margin: 0 auto; }
    .float-card { left: 50%; transform: translateX(-50%); bottom: -20px; width: max-content; }
    @keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
    
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .large, .wide { grid-column: span 1; grid-row: span 1; }
    .wide { flex-direction: column; text-align: center; padding: 40px 30px; }
    
    .footer-grid { flex-direction: column; gap: 30px; text-align: center; }
}