/* ===== KANGEN INTRODUCCIÓN — SHARED STYLES ===== */
/* Premium dark theme with water-inspired aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --bg-dark: #070e1a;
    --bg-darker: #040811;
    --bg-section-alt: #0a1628;
    --card-bg: rgba(16, 29, 54, 0.6);
    --card-bg-solid: #0d1f3c;
    --border-color: rgba(64, 114, 219, 0.2);
    --border-light: rgba(255, 255, 255, 0.06);
    --primary: #0088ff;
    --primary-hover: #00a2ff;
    --accent: #00d2ff;
    --accent-warm: #00e5a0;
    --text-main: #f0f4fc;
    --text-muted: #94a3b8;
    --text-dim: #5a6a82;

    /* pH Colors */
    --ph-super-alkaline: #9c27b0;
    --ph-kangen: #2196f3;
    --ph-neutral: #4caf50;
    --ph-beauty: #ffc107;
    --ph-acid: #f44336;

    /* Gradients */
    --gradient-water: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --gradient-water-warm: linear-gradient(135deg, #00d2ff 0%, #00e5a0 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(0,136,255,0.15) 0%, transparent 50%),
                     radial-gradient(ellipse at 70% 80%, rgba(0,210,255,0.1) 0%, transparent 50%);

    /* Shadows */
    --shadow-soft: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(0,136,255,0.4);
    --shadow-glow-sm: 0 0 12px rgba(0,136,255,0.25);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,136,255,0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Sizing */
    --max-width: 1280px;
    --nav-height: 76px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-warm {
    background: var(--gradient-water-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(0,136,255,0.35);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--gradient-water);
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0,136,255,0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 13px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(0,136,255,0.1);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7,14,26,0.9);
    backdrop-filter: blur(16px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand .logo-icon {
    font-size: 1.8rem;
}

.nav-brand .logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-brand .logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.4rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-water);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-height) + 2rem) 0 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0,136,255,0.1);
    border: 1px solid rgba(0,136,255,0.3);
    border-radius: 30px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-item .stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.hero-image-wrapper img {
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    animation: gentle-float 6s ease-in-out infinite;
}

.hero-floating-badge {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
    z-index: 10;
    white-space: nowrap;
}

.hero-floating-badge.badge-top {
    top: 10%;
    left: -15%;
    animation: float 7s ease-in-out infinite alternate;
}

.hero-floating-badge.badge-bottom {
    bottom: 15%;
    right: -10%;
    animation: float 9s ease-in-out infinite alternate-reverse;
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
}

.orb-1 {
    top: -15%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent);
    animation: float 20s infinite alternate;
}

.orb-2 {
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    animation: float 25s infinite alternate-reverse;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

/* ===== MODULES GRID (index page) ===== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.module-card {
    padding: 2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-water);
    transition: var(--transition-slow);
    border-radius: 0 0 4px 0;
}

.module-card:hover::before {
    height: 100%;
}

.module-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    opacity: 0.1;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.module-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.module-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.module-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.module-card .module-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.module-card:hover .module-link {
    gap: 10px;
}

/* ===== FEATURES BAR ===== */
.features-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 4rem;
}

.feature-item {
    background: var(--bg-section-alt);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(0,136,255,0.05);
}

.feature-item .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    display: block;
}

.feature-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: var(--gradient-water);
    border-radius: 24px;
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-banner h2 {
    font-size: 2rem;
    color: #fff;
}

.cta-banner p {
    color: rgba(255,255,255,0.85);
    margin-top: 0.5rem;
}

.cta-banner .btn-white {
    background: #fff;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-banner .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--accent);
}

/* ===== SUBPAGE HERO (for module pages) ===== */
.subpage-hero {
    padding: calc(var(--nav-height) + 4rem) 0 3rem;
    position: relative;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    opacity: 0.4;
}

.subpage-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.subpage-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.8;
}

/* ===== CONTENT SECTIONS (module pages) ===== */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-section-alt);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.content-text h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.content-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.content-text blockquote {
    border-left: 3px solid var(--accent);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(0,210,255,0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-main);
}

.content-text blockquote cite {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.content-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.content-image img {
    width: 100%;
    border-radius: 20px;
    transition: var(--transition);
}

.content-image:hover img {
    transform: scale(1.03);
}

/* Feature list in content */
.feature-list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✦';
    color: var(--accent);
    font-size: 0.7rem;
    margin-top: 5px;
    flex-shrink: 0;
}

/* Info cards grid */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    padding: 2rem;
    text-align: center;
}

.info-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Book cards */
.book-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.book-card {
    padding: 1.5rem;
    text-align: center;
}

.book-card .book-emoji {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.book-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.book-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-water);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.35rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(0,210,255,0.5);
}

.timeline-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== ANIMATIONS ===== */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 30px); }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,136,255,0.3); }
    50% { box-shadow: 0 0 40px rgba(0,136,255,0.6); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .content-grid.reverse {
        direction: ltr;
    }

    .features-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(7,14,26,0.95);
        backdrop-filter: blur(16px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-light);
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .features-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    section {
        padding: 60px 0;
    }

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

    .hero-floating-badge {
        display: none;
    }
}
