/* Nutrialog landing — tokens y clases de componente adaptadas del design system
   "Organic" (claude.ai/design). Solo se usa en landingpage.html; el resto de la
   app sigue con Tailwind CDN + styles.css, ver claude.md §10. */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

:root {
    /* Paleta "Clínica" — misma paleta que el resto de la app (organic.css),
       ver claude.md §3 y el proyecto de diseño "Nutrialog Landing Page Review". */
    --color-bg: #f6f6f4;
    --color-surface: #e9ebe8;
    --color-text: #191d1c;
    --color-accent: #35766f;
    --color-accent-2: #a89360;
    --color-divider: color-mix(in srgb, #191d1c 15%, transparent);

    --color-neutral-100: #fafaf9;
    --color-neutral-200: #eeefed;
    --color-neutral-300: #dcdedb;
    --color-neutral-400: #bfc2be;
    --color-neutral-500: #a0a4a0;
    --color-neutral-600: #82867f;
    --color-neutral-700: #64685f;
    --color-neutral-800: #464a43;
    --color-neutral-900: #2c2f2a;

    --color-accent-100: #e8f4f2;
    --color-accent-200: #cfe8e4;
    --color-accent-300: #a6d2cc;
    --color-accent-400: #74b3ab;
    --color-accent-500: #4d948c;
    --color-accent-600: #35766f;
    --color-accent-700: #245852;
    --color-accent-800: #163b37;
    --color-accent-900: #0c2523;

    --color-accent-2-100: #f8f2e6;
    --color-accent-2-200: #f0e5cd;
    --color-accent-2-300: #ddcda6;
    --color-accent-2-400: #c4b07f;
    --color-accent-2-500: #a89360;
    --color-accent-2-600: #8a7649;
    --color-accent-2-700: #6a5936;
    --color-accent-2-800: #4a3d24;
    --color-accent-2-900: #2f2716;

    --font-heading: "Figtree", system-ui, sans-serif;
    --font-heading-weight: 700;
    --font-body: "Figtree", system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;

    /* "Contorno": tarjetas con borde en vez de sombra; shadow-lg se deja
       real (la usa el menú móvil desplegable, que sí necesita elevación). */
    --shadow-sm: 0 0 0 1.5px var(--color-divider);
    --shadow-md: 0 0 0 1.5px var(--color-divider);
    --shadow-lg: 0 12px 32px color-mix(in srgb, #191d1c 22%, transparent);
}

#landing { color-scheme: light; }
#landing * { box-sizing: border-box; }
#landing {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
}
#landing h1, #landing h2, #landing h3, #landing h4 {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
}
#landing p { margin: 0 0 13px; }
#landing a { color: var(--color-accent); text-decoration: none; text-underline-offset: 3px; }
#landing a:hover { color: var(--color-accent-700); text-decoration: underline; }
#landing .text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
#landing :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
#landing section[id] { scroll-margin-top: 90px; }
#landing .wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* — botones — */
#landing .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; text-decoration: none;
    font-family: var(--font-heading); font-weight: var(--font-heading-weight);
    font-size: 16px; line-height: 1.2; color: var(--color-text);
    background: transparent; border: 1.5px solid transparent;
    padding: 14px 26px; border-radius: 999px;
    transition: background 0.15s ease, transform 0.1s ease;
}
#landing .btn:hover { text-decoration: none; }
#landing .btn:active { transform: translateY(1px); }
#landing .btn-primary { background: var(--color-accent); color: var(--color-neutral-100); }
#landing .btn-primary:hover { background: var(--color-accent-600); color: var(--color-neutral-100); }
#landing .btn-secondary { border-color: var(--color-divider); color: var(--color-text); }
#landing .btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
#landing .btn-on-dark { border-color: rgba(249, 244, 237, 0.55); color: var(--color-neutral-100); }
#landing .btn-on-dark:hover { background: rgba(249, 244, 237, 0.12); color: var(--color-neutral-100); }
#landing .btn-block { width: 100%; }

/* — tarjetas / tags — */
#landing .card { background: var(--color-surface); border-radius: calc(var(--radius-lg) * 1.15); }
#landing .elev-sm { box-shadow: var(--shadow-sm); }
#landing .elev-md { box-shadow: var(--shadow-md); }
#landing .tag {
    display: inline-flex; align-items: center; font-size: 12px; letter-spacing: 0.02em;
    padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
#landing .tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
#landing .tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }

/* — icono circular — */
#landing .icon-badge {
    width: 44px; height: 44px; border-radius: 999px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
}
#landing .icon-badge svg { display: block; }

/* — nav — */
#landing .nav {
    display: flex; align-items: center; justify-content: space-between; gap: 20px 28px;
    flex-wrap: wrap; padding: 20px 32px;
}
#landing .nav-brand { display: flex; align-items: center; gap: 9px; font-size: 21px; font-family: var(--font-heading); font-weight: var(--font-heading-weight); color: var(--color-text); }
#landing .nav-brand:hover { text-decoration: none; color: var(--color-text); }
#landing .nav-links { display: flex; gap: 24px; align-items: center; }
#landing .nav-links a { color: var(--color-text); font-size: 14.5px; }
#landing .nav-links a:hover { color: var(--color-accent); text-decoration: none; }
#landing .nav-actions { display: flex; gap: 10px; align-items: center; }

/* — nav móvil — */
#landing .mobile-menu-btn { display: none; }
#landing .mobile-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg); border-top: 1px solid var(--color-divider);
    box-shadow: var(--shadow-md); padding: 12px 16px; z-index: 40;
}
#landing .mobile-nav.active { display: flex; flex-direction: column; gap: 4px; }
#landing .mobile-nav a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--color-text); font-weight: 500; font-size: 15px; }
#landing .mobile-nav a:hover { background: var(--color-surface); text-decoration: none; }

#landing .mobile-nav-cta { background: var(--color-accent); color: var(--color-neutral-100) !important; font-family: var(--font-heading); font-weight: var(--font-heading-weight); text-align: center; margin-top: 4px; }
#landing .mobile-nav-cta:hover { background: var(--color-accent-600); }

@media (max-width: 860px) {
    #landing .nav-links { display: none; }
    #landing .nav-actions .btn-primary { display: none; }
    #landing .mobile-menu-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--color-divider);
        background: transparent; cursor: pointer; color: var(--color-text);
    }
}

/* — hr — */
#landing .hr { height: 1px; border: 0; background: var(--color-divider); margin: 0; }

/* — detalles FAQ — */
#landing details { border-radius: 24px; background: var(--color-surface); padding: 22px 26px; }
#landing details + details { margin-top: 4px; }
#landing summary {
    font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; cursor: pointer;
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
#landing summary::-webkit-details-marker { display: none; }
#landing summary .chev { transition: transform 0.2s ease; flex: none; color: var(--color-accent); }
#landing details[open] summary .chev { transform: rotate(180deg); }
#landing details p { font-size: 15.5px; line-height: 1.6; margin: 12px 0 0; }

@media (max-width: 640px) {
    #landing .wrap, #landing .nav { padding-left: 20px; padding-right: 20px; }
    #landing h1 { font-size: 34px !important; }
    #landing h2 { font-size: 28px !important; }
}
