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

/* =========================================
   1. VARIABLES DE DISEÑO
   ========================================= */
:root {
    --fresh-green: #2ecc71;
    --neon-green: #27ae60;
    --dark-navy: #1a252f;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-main: #34495e;
    --text-muted: #7f8c8d;
    --danger: #e74c3c;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --radius-md: 12px;
    --font-main: 'Poppins', sans-serif;
}

/* =========================================
   2. ESTILOS BASE
   ========================================= */
body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.news-page .main-content,
.news-article-page .main-content,
.recipes-page .main-content,
.recipe-page .main-content,
.routines-page .main-content,
.routine-page .main-content,
.calculators-page .main-content,
.info-page .main-content {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-page .main-content,
.news-article-page .main-content {
    background-image: linear-gradient(rgba(244, 247, 246, 0.62), rgba(244, 247, 246, 0.74)), url('images/noticias-fondo.jpg');
}

.recipes-page .main-content,
.recipe-page .main-content {
    background-image: linear-gradient(rgba(244, 247, 246, 0.6), rgba(244, 247, 246, 0.72)), url('images/fondo-recetas.jpg');
}

.routines-page .main-content,
.routine-page .main-content {
    background-image: linear-gradient(rgba(244, 247, 246, 0.58), rgba(244, 247, 246, 0.72)), url('images/fondo-rutina.jpg');
}

.calculators-page .main-content {
    background-image: none;
}

.info-page .main-content {
    background-image: linear-gradient(rgba(244, 247, 246, 0.66), rgba(244, 247, 246, 0.78)), url('images/fondoIndex.png');
}

/* =========================================
   3. NAVEGACIÓN
   ========================================= */
nav {
    background-color: var(--dark-navy);
    padding: 15px 25px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transform-origin: center;
    white-space: nowrap;
    animation: logoFloat 4.8s ease-in-out infinite;
}

.logo:hover {
    animation-play-state: paused;
}

.logo-image {
    display: block;
    width: clamp(50px, 6vw, 68px);
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 18px rgba(46, 204, 113, 0.14));
    transition: transform 0.28s ease, filter 0.28s ease;
}

.logo:hover .logo-image,
.logo:focus-visible .logo-image {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 10px 22px rgba(46, 204, 113, 0.2));
}

.logo-text {
    display: inline-block;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(120deg, #31c4ff 0%, #1dd1a1 22%, #4facfe 45%, #16f0b0 67%, #2ecc71 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: logoWave 4.2s linear infinite;
    text-shadow: 0 0 18px rgba(49, 196, 255, 0.16);
}

.logo:focus-visible {
    outline: 2px solid rgba(46, 204, 113, 0.65);
    outline-offset: 6px;
    border-radius: 14px;
}

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

@keyframes logoWave {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 220% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo {
        animation: none;
    }

    .logo-image,
    .logo-text {
        transition: none;
        animation: none;
    }
}

@media (max-width: 640px) {
    .logo {
        gap: 9px;
    }

    .logo-text {
        font-size: clamp(20px, 6vw, 26px);
    }

}
.home-hero {
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 0 20px;
}
.home-hero-content {
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.88), rgba(46, 204, 113, 0.72));
    color: white;
    border-radius: 26px;
    padding: 42px 32px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}
.home-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    margin-bottom: 14px;
}
.home-hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
    margin: 0 0 14px 0;
    max-width: 720px;
}
.home-hero p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0;
}
.home-hero-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}
.hero-link:hover {
    transform: translateY(-2px);
}
.hero-link.primary {
    background: white;
    color: var(--dark-navy);
}
.hero-link.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.28);
}
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}
.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--fresh-green);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    position: absolute;
    top: 65px;
    left: -100%;
    width: 100%;
    background-color: var(--dark-navy);
    transition: left 0.4s ease;
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}
.nav-links.active { left: 0; }
.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--fresh-green); }

@media (min-width: 768px) {
    .menu-toggle { display: none; }
    .nav-links {
        position: static;
        flex-direction: row;
        padding: 0;
        gap: 30px;
        width: auto;
        box-shadow: none;
    }
    .nav-links a { font-size: 15px; }
}

/* =========================================
   4. HOME - CALCULADORA
   ========================================= */
.home-page .main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    min-height: calc(100vh - 65px);
    background-image: url('images/fondoIndex.png');
    background-size: cover;
    background-position: center;
}
.calculator-container {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-md);
    padding: 40px 35px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.calculator-container h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0 0 25px 0;
    text-align: center;
}
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 8px;
    margin-top: 18px;
}
input[type="number"] {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-light);
    transition: border-color 0.2s;
    box-sizing: border-box;
}
input[type="number"]:focus {
    outline: none;
    border-color: var(--fresh-green);
    background: white;
}
.error-msg {
    display: none;
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
}
button {
    width: 100%;
    padding: 15px;
    background: var(--fresh-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    margin-top: 25px;
    transition: background 0.2s, transform 0.1s;
}
button:hover { background: var(--neon-green); }
button:active { transform: scale(0.98); }
#resultado {
    display: none;
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-main);
}
.highlight {
    font-size: 42px;
    font-weight: 700;
    color: var(--fresh-green);
    display: block;
    margin: 5px 0;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    user-select: none;
}
.dropdown-selected {
    padding: 13px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}
.dropdown-selected::after {
    content: '▼';
    font-size: 11px;
    color: var(--text-muted);
}
.custom-dropdown.active .dropdown-selected { border-color: var(--fresh-green); }
.dropdown-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: white;
    border: 2px solid var(--fresh-green);
    border-radius: 8px;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    box-sizing: border-box;
}
.custom-dropdown.active .dropdown-options { display: block; }
.dropdown-options li {
    padding: 11px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}
.dropdown-options li:hover { background: var(--bg-light); color: var(--neon-green); font-weight: 600; }

/* =========================================
   5. PÁGINA DE NOTICIAS (GRID)
   ========================================= */
.news-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.64);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 24px;
    margin-bottom: 26px;
}
.news-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 30px;
    border-left: 5px solid var(--fresh-green);
    padding-left: 15px;
}
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
@media (min-width: 600px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}
.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-category {
    display: inline-block;
    background: var(--fresh-green);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.news-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.news-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin: 0 0 15px 0;
}
.read-more {
    color: var(--fresh-green);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
    align-self: flex-start;
}
.read-more:hover { color: var(--neon-green); }

/* =========================================
   6. PÁGINA DE ARTÍCULO
   ========================================= */
.article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.7);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 26px;
    margin-bottom: 26px;
}
.article-header {
    margin-bottom: 25px;
}
.article-category {
    display: inline-block;
    background: var(--fresh-green);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}
.article-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.3;
    margin: 0 0 12px 0;
}
.article-meta {
    font-size: 13px;
    color: var(--text-muted);
}
.article-featured-image {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}
.article-featured-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}
.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0 0 20px 0;
}
.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 35px 0 15px 0;
    border-left: 4px solid var(--fresh-green);
    padding-left: 12px;
}
.article-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 30px 0 12px 0;
}
.article-content ul, .article-content ol {
    padding-left: 20px;
    margin: 0 0 20px 0;
}
.article-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 8px;
}
.article-content .highlight-box {
    background: #eafaf1;
    border-left: 4px solid var(--fresh-green);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 25px 0;
    font-size: 15px;
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fresh-green);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.2s;
}
.article-back:hover { color: var(--neon-green); }

/* =========================================
   7. PÁGINAS LEGALES
   ========================================= */
.legal-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.74);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 26px;
    margin-bottom: 26px;
}
.legal-container h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 8px;
}
.legal-container .last-update {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    display: block;
}
.legal-container h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 30px 0 10px 0;
}
.legal-container p, .legal-container li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 12px;
}
.legal-container ul { padding-left: 20px; }

/* =========================================
   8. CONTACTO
   ========================================= */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.74);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 26px;
    margin-bottom: 26px;
}
.contact-container h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 10px;
}
.contact-container p { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text-main);
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--fresh-green);
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form button { margin-top: 0; }
.contact-success {
    display: none;
    background: #eafaf1;
    border: 2px solid var(--fresh-green);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--neon-green);
    font-weight: 600;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: var(--dark-navy);
    color: rgba(255,255,255,0.7);
    padding: 35px 25px;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 18px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--fresh-green); }
.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.footer-disclaimer {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    max-width: 600px;
    margin: 10px auto 0;
    line-height: 1.6;
}

/* =========================================
   10. PÁGINAS DE CALCULADORAS
   ========================================= */
.calculators-page .main-content {
    padding: 40px 20px 60px;
}
.calculators-hero {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}
.calculators-hero h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 10px;
}
.calculators-hero p {
    font-size: 16px;
    color: var(--text-muted);
}
.calculators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 700px) {
    .calculators-grid { grid-template-columns: repeat(2, 1fr); }
}
.calc-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 35px 30px;
    box-shadow: var(--shadow-soft);
}
.calc-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0 0 6px 0;
}
.calc-card .calc-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 22px 0;
}
.calc-result {
    display: none;
    margin-top: 20px;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
}
.calc-result .result-number {
    font-size: 38px;
    font-weight: 700;
    color: var(--fresh-green);
    display: block;
    line-height: 1.1;
}
.calc-result .result-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}
.calc-result .result-category {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}
.imc-bajo    { background: #3498db; }
.imc-normal  { background: var(--fresh-green); }
.imc-sobrepeso { background: #f39c12; }
.imc-obesidad  { background: var(--danger); }
.tdee-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
    text-align: left;
}
.tdee-item {
    background: white;
    border-radius: 8px;
    padding: 10px 14px;
}
.tdee-item .tdee-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-navy);
    display: block;
}
.tdee-item .tdee-lbl {
    font-size: 11px;
    color: var(--text-muted);
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-main);
    margin: 0;
    cursor: pointer;
    padding: 10px 14px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.radio-group label:hover { border-color: var(--fresh-green); background: #f8fffe; }
.radio-group input[type="radio"] { accent-color: var(--fresh-green); width: 16px; height: 16px; }
.radio-group input[type="radio"]:checked + span { font-weight: 600; color: var(--dark-navy); }
select.calc-select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-light);
    transition: border-color 0.2s;
    box-sizing: border-box;
    cursor: pointer;
}
select.calc-select:focus { outline: none; border-color: var(--fresh-green); }

/* =========================================
   11. RECETAS
   ========================================= */
.recipes-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.64);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 26px;
    margin-bottom: 26px;
}
.recipes-section h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 8px;
    border-left: 5px solid var(--fresh-green);
    padding-left: 15px;
}
.recipes-section .section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 35px;
    padding-left: 20px;
}
.recipes-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.filter-btn {
    padding: 8px 18px;
    border: 2px solid #e8ecef;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    width: auto;
    margin: 0;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--fresh-green);
    background: var(--fresh-green);
    color: white;
}
.recipes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
@media (min-width: 600px) {
    .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .recipes-grid { grid-template-columns: repeat(3, 1fr); }
}
.recipe-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.recipe-image { position: relative; }
.recipe-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.recipe-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fresh-green);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.recipe-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.recipe-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.recipe-macros {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.macro-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 15px;
    background: var(--bg-light);
    color: var(--text-main);
}
.macro-pill.kcal { background: #fef9e7; color: #d4ac0d; }
.macro-pill.prot { background: #eafaf1; color: #1e8449; }
.macro-pill.carb { background: #eaf4fb; color: #1a5276; }
.macro-pill.fat  { background: #fdf2f8; color: #7d3c98; }
.recipe-desc {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
    margin: 0 0 15px 0;
    line-height: 1.6;
}
.recipe-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.recipe-meta span { display: flex; align-items: center; gap: 4px; }

/* Página de receta individual */
.recipe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.68);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 26px;
    margin-bottom: 26px;
}
.recipe-container h1 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0 0 12px 0;
    line-height: 1.3;
}
.recipe-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin: 20px 0 25px;
}
.recipe-info-item { text-align: center; }
.recipe-info-item .val { font-size: 20px; font-weight: 700; color: var(--fresh-green); display: block; }
.recipe-info-item .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.recipe-body { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 700px) { .recipe-body { grid-template-columns: 1fr 1.6fr; } }
.ingredients-box, .steps-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-soft);
}
.ingredients-box h2, .steps-box h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}
.ingredients-box ul { list-style: none; padding: 0; margin: 0; }
.ingredients-box li {
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-light);
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}
.ingredients-box li:last-child { border-bottom: none; }
.ing-amount { font-weight: 600; color: var(--fresh-green); }
.steps-box ol { padding-left: 0; margin: 0; list-style: none; counter-reset: steps; }
.steps-box li {
    counter-increment: steps;
    padding: 12px 0 12px 44px;
    border-bottom: 1px solid var(--bg-light);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    position: relative;
}
.steps-box li:last-child { border-bottom: none; }
.steps-box li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    background: var(--fresh-green);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.macros-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    margin-top: 25px;
}
.macros-box h2 { font-size: 18px; font-weight: 700; color: var(--dark-navy); margin: 0 0 18px 0; }
.macros-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 500px) { .macros-row { grid-template-columns: repeat(2, 1fr); } }
.macro-box { text-align: center; padding: 14px 10px; border-radius: 10px; background: var(--bg-light); }
.macro-box .mv { font-size: 22px; font-weight: 700; color: var(--dark-navy); display: block; }
.macro-box .ml { font-size: 11px; color: var(--text-muted); }

/* =========================================
   12. RUTINAS
   ========================================= */
.routines-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.64);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 26px;
    margin-bottom: 26px;
}
.routines-section h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 8px;
    border-left: 5px solid var(--fresh-green);
    padding-left: 15px;
}
.routines-section .section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 35px;
    padding-left: 20px;
}
.routines-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
@media (min-width: 700px) { .routines-grid { grid-template-columns: repeat(3, 1fr); } }
.routine-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.routine-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.routine-header {
    padding: 28px 25px 20px;
    position: relative;
}
.routine-header.beginner { background: linear-gradient(135deg, #1abc9c, #16a085); }
.routine-header.intermediate { background: linear-gradient(135deg, #3498db, #2980b9); }
.routine-header.advanced { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.routine-level {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
    display: block;
}
.routine-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}
.routine-body { padding: 22px 25px; flex: 1; display: flex; flex-direction: column; }
.routine-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.routine-stat {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.routine-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}
.routine-days {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.day-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    background: var(--bg-light);
    color: var(--text-main);
}

/* Página de rutina individual */
.routine-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.68);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 26px;
    margin-bottom: 26px;
}
.routine-hero {
    border-radius: var(--radius-md);
    padding: 35px 30px;
    margin-bottom: 30px;
    color: white;
}
.routine-hero.beginner { background: linear-gradient(135deg, #1abc9c, #16a085); }
.routine-hero.intermediate { background: linear-gradient(135deg, #3498db, #2980b9); }
.routine-hero.advanced { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.routine-hero .level-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin-bottom: 8px;
    display: block;
}
.routine-hero h1 { font-size: clamp(22px, 4vw, 32px); margin: 0 0 15px 0; }
.routine-hero-stats { display: flex; gap: 25px; flex-wrap: wrap; }
.routine-hero-stats span { font-size: 14px; opacity: 0.9; }
.routine-week { margin-bottom: 35px; }
.routine-week-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.routine-day-card {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.routine-day-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.routine-day-header h3 { font-size: 15px; font-weight: 700; color: var(--dark-navy); margin: 0; }
.routine-day-header .day-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 15px;
    background: var(--bg-light);
    color: var(--text-muted);
}
.routine-day-header .toggle-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s;
}
.routine-day-card.open .toggle-icon { transform: rotate(180deg); }
.routine-day-body { display: none; padding: 0 20px 20px; }
.routine-day-card.open .routine-day-body { display: block; }
.exercise-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.exercise-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 10px;
    border-bottom: 2px solid var(--bg-light);
}
.exercise-table td { padding: 10px 10px; border-bottom: 1px solid var(--bg-light); color: var(--text-main); }
.exercise-table tr:last-child td { border-bottom: none; }
.exercise-table .ex-name { font-weight: 600; color: var(--dark-navy); }
.exercise-table .ex-note { font-size: 12px; color: var(--text-muted); display: block; }
@media (max-width: 500px) {
    .exercise-table th:nth-child(3),
    .exercise-table td:nth-child(3) { display: none; }
}

/* =========================================
   13. SOBRE NOSOTROS
   ========================================= */
.about-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    background: rgba(255,255,255,0.74);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    margin-top: 26px;
    margin-bottom: 26px;
}
.about-hero {
    text-align: center;
    margin-bottom: 50px;
}
.about-hero .logo-big {
    font-size: 48px;
    font-weight: 700;
    color: var(--fresh-green);
    letter-spacing: -2px;
    display: block;
    margin-bottom: 15px;
}
.about-hero h1 {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 15px;
}
.about-hero p { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 35px 0;
}
@media (min-width: 600px) { .about-values { grid-template-columns: repeat(3, 1fr); } }
.value-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.value-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.value-card h3 { font-size: 16px; font-weight: 700; color: var(--dark-navy); margin: 0 0 8px 0; }
.value-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.about-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 35px 0 15px 0;
    border-left: 4px solid var(--fresh-green);
    padding-left: 12px;
}
.about-body p { font-size: 15px; line-height: 1.8; color: var(--text-main); margin-bottom: 15px; }

/* =========================================
   14. BUSCADOR EN NOTICIAS
   ========================================= */
.search-bar-wrapper {
    max-width: 500px;
    margin-bottom: 30px;
    position: relative;
}
.search-bar-wrapper input[type="text"] {
    width: 100%;
    padding: 13px 46px 13px 18px;
    border: 2px solid #e8ecef;
    border-radius: 30px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text-main);
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.search-bar-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--fresh-green);
}
.search-bar-wrapper .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}
.no-results {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* =========================================
   15. ARTÍCULOS RELACIONADOS
   ========================================= */
.related-articles {
    max-width: 780px;
    margin: 40px auto 0;
    padding: 30px 20px 0;
    border-top: 2px solid var(--bg-light);
}
.related-articles h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0 0 20px 0;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.related-card:hover { transform: translateY(-3px); }
.related-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.related-card-content { padding: 12px 14px; }
.related-card-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fresh-green);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}
.related-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-navy);
    line-height: 1.4;
    margin: 0;
}

/* =========================================
   16. NEWSLETTER
   ========================================= */
.newsletter-box {
    background: linear-gradient(135deg, var(--dark-navy), #2c3e50);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    text-align: center;
    margin: 50px 0 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}
.newsletter-box p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 22px 0;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 13px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-main);
    box-sizing: border-box;
}
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--fresh-green); }
.newsletter-form button {
    width: auto;
    padding: 13px 24px;
    margin: 0;
    white-space: nowrap;
    font-size: 14px;
}
.newsletter-success {
    display: none;
    color: var(--fresh-green);
    font-weight: 600;
    font-size: 15px;
}

/* =========================================
   17. BANNER DE COOKIES
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-navy);
    color: rgba(255,255,255,0.9);
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}
.cookie-banner p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.cookie-banner a { color: var(--fresh-green); }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept {
    padding: 10px 22px;
    background: var(--fresh-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    width: auto;
    margin: 0;
    transition: background 0.2s;
}
.cookie-btn-accept:hover { background: var(--neon-green); }
.cookie-btn-reject {
    padding: 10px 18px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--font-main);
    cursor: pointer;
    width: auto;
    margin: 0;
    transition: all 0.2s;
}
.cookie-btn-reject:hover { border-color: rgba(255,255,255,0.5); color: white; }

/* =========================================
   18. RESPONSIVE EXTRAS
   ========================================= */
@media (max-width: 400px) {
    .calculator-container { padding: 25px 18px; }
    .calc-card { padding: 25px 18px; }
    .tdee-breakdown { grid-template-columns: 1fr 1fr; }
    .recipe-info-bar { gap: 12px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
    .cookie-banner { flex-direction: column; align-items: flex-start; }
    .routine-hero-stats { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
    .home-hero-content { padding: 34px 22px; }
    .home-hero-links { flex-direction: column; }
    .hero-link { width: 100%; }
    .article-featured-image img { height: 220px; }
    .recipe-body { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
}
