@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root{--bg:#f3f8f8;--ink:#122536;--muted:#627788;--green:#078d76;--blue:#2875cf;--line:#dfebed;--shadow:0 14px 36px rgba(22,65,75,.08)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:radial-gradient(circle at top left,#e1f9ee,transparent 40%),var(--bg);font-family:Inter,system-ui,Arial,sans-serif;font-size:16px;line-height:1.5}.shell{width:100%;max-width:100%;padding:24px 32px 48px}.hero{border-radius:28px;background:linear-gradient(115deg,#103f51,#087f70 70%,#18ae8a);color:white;padding:32px 38px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.brand{display:flex;align-items:center;gap:18px}.logo{width:66px;height:66px;display:grid;place-items:center;border-radius:22px;background:#ffffff22;font-size:38px}.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:800;text-transform:uppercase;color:#078d76}.hero .eyebrow{color:#b7f7df}.hero h1{font-size:clamp(28px,3vw,43px);letter-spacing:-.05em;margin:2px 0}.hero h1 em{font-style:normal;color:#b9ffe1}.hero p{margin:0;color:#e4fcf4}.profile-switch{min-width:220px}.profile-switch label{color:white}.profile-switch select{color:#143e48;background:white}.notice{display:none;margin-bottom:16px;padding:14px 18px;border-radius:14px;font-weight:700}.notice.show{display:block;background:#e4f8f0;color:#075c46}.notice.error{background:#ffeded;color:#a62a2a}main{display:grid;grid-template-columns:1fr;gap:20px}.card{background:white;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow);min-width:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.section-head h2{font-size:clamp(22px,2vw,28px);letter-spacing:-.04em;margin:3px 0}.tag{background:#e8f7f1;color:#087b66;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.muted,.hint{color:var(--muted)}.hint{font-size:13px;margin:14px 0 0}.dashboard{display:grid;grid-template-columns:300px 1fr;gap:24px;align-items:center}.ring-wrap{text-align:center}.ring{--pct:0%;--ring-color:#13ae80;width:235px;height:235px;border-radius:50%;background:conic-gradient(var(--ring-color) var(--pct),#e5f1ef 0);padding:18px;margin:auto;display:grid;place-items:center}.ring-inner{background:white;width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 0 0 1px #e4eeee}.ring-inner strong{font-size:52px;letter-spacing:-.07em;line-height:1.2}.ring-inner span{font-size:13px}.ring-caption{font-weight:700;margin-top:12px}.dashboard-stats,.stats-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat,.mini{border:2px solid #e2ecee;border-radius:19px;padding:18px;display:flex;flex-direction:column;gap:5px;min-width:0}.stat span,.mini span{font-size:13px;color:#526d7c;font-weight:700}.stat strong,.mini strong{font-size:clamp(22px,2.5vw,34px);letter-spacing:-.05em;overflow-wrap:anywhere}.stat small,.mini small{font-size:12px;color:#688090}.stat.green{border-color:#b3e9d6;background:#effbf6}.stat.blue{border-color:#c3defc;background:#f0f7ff}.stat.amber{border-color:#f5e2a6;background:#fffaf0}.stat.rose{border-color:#f9d2d8;background:#fff5f6}.meter{height:26px;background:#e8f1f0;border-radius:999px;overflow:hidden;margin-top:20px}.meter-fill{width:0;height:100%;border-radius:999px;background:linear-gradient(90deg,#08a27e,#42d5a4);transition:width .3s}.meter-label{display:flex;justify-content:space-between;gap:12px;color:#536d7c;font-size:13px;font-weight:700;margin-top:8px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.field{min-width:0}label{display:block;font-size:13px;font-weight:800;color:#365164;margin-bottom:7px}input,select,textarea{font:inherit;width:100%;border:1.5px solid #d5e2e6;background:#fff;color:var(--ink);border-radius:14px;padding:13px 15px;min-height:49px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:none;border-color:#138d85;box-shadow:0 0 0 4px #138d8522}.goal-input{border:2px solid #2875cf;font-size:22px;font-weight:800}.field-button{display:flex;align-items:end}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.btn{font:inherit;font-size:14px;font-weight:800;border:0;border-radius:14px;padding:14px 20px;cursor:pointer;min-height:49px;text-align:center}.btn.primary{background:linear-gradient(105deg,#078e77,#0b9e85);color:#fff}.btn.secondary{background:#eaf3f5;color:#1d5868}.btn:hover{filter:brightness(.96)}.btn:disabled{opacity:.45;cursor:not-allowed}.callout{border:1px solid #dce8e9;border-radius:16px;padding:15px 18px;margin:16px 0;font-size:14px;line-height:1.7}.blue-box{background:#edf6ff;border-color:#c8e0fb}.amber-box{background:#fff8e5;border-color:#f4dda0}.red-box{background:#fff0f0;border-color:#f3baba}.green-box{background:#eafaf2;border-color:#b5e6d0}.stats-four{margin:16px 0}.table-scroll{overflow-x:auto;margin-top:16px}table{border-collapse:collapse;width:100%;font-size:13px;min-width:700px}th{background:#f0f6f7;color:#456474;text-align:left;font-size:12px}th,td{padding:12px 11px;border-bottom:1px solid #e7eff0;vertical-align:middle}td strong{color:#096d5e}.meals{display:grid;gap:14px;margin:18px 0}.meal{background:#f8fbfb;border:1px solid #e2eeee;border-radius:18px;padding:14px}.meal h3{margin:0 0 8px;display:flex;justify-content:space-between;font-size:16px}.food-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #e4eded}.food-row small{display:block;color:#67808c}.food-row button,.tiny{background:#ffe8e8;color:#a42e2e;border:0;border-radius:10px;padding:8px 10px;cursor:pointer;font-weight:800}.badge{background:#dff4ea;color:#08735e;border-radius:999px;padding:4px 10px;font-size:12px}.plan{margin-top:14px}.plan-item{padding:13px 15px;background:#f4faf8;border:1px solid #deebe8;border-radius:14px;margin:8px 0}.plan-item strong{display:block}.plan-item p{margin:4px 0;font-size:13px;color:#536f7a}.chart-wrap{background:#f8fafc;border:1px solid #e1eaee;border-radius:18px;margin-top:20px;padding:12px}.chart-wrap canvas{width:100%;height:auto;display:block}.checkbox{display:flex;align-items:center;gap:12px}.checkbox input{width:20px;min-height:20px;height:20px;accent-color:#078d76}.import-btn{display:inline-flex;align-items:center;justify-content:center}h3{margin-top:24px}footer{text-align:center;color:#6c8290;font-size:13px;padding:25px}@media(min-width:1440px){.shell{padding:28px 48px 60px}.card{padding:32px}}@media(max-width:900px){.dashboard{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,1fr)}.stats-four{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.shell{padding:12px 12px 30px}.hero{padding:23px 19px;flex-direction:column;align-items:stretch;border-radius:22px}.logo{width:50px;height:50px;font-size:30px}.profile-switch{min-width:0}.card{padding:19px 16px;border-radius:22px}.fields{grid-template-columns:1fr;gap:13px}.section-head{align-items:flex-start;flex-wrap:wrap}.dashboard-stats,.stats-four{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat,.mini{padding:12px}.stat strong,.mini strong{font-size:22px}.ring{width:215px;height:215px}.actions .btn{flex:1}.meter-label{font-size:11px}.tag{font-size:11px}}

/* Cabecera rediseñada: iconografía SVG propia y accesos rápidos */
.hero{display:block;background:linear-gradient(120deg,#07583d 0%,#087b4d 54%,#15945b 100%);padding:28px 32px 20px;overflow:hidden;position:relative}.hero:before{content:"";position:absolute;width:300px;height:300px;border:1px solid #ffffff25;border-radius:50%;right:-110px;top:-180px;pointer-events:none}.hero-top{display:flex;justify-content:space-between;align-items:center;gap:24px;position:relative}.hero .logo{width:78px;height:78px;background:#ffffff1e;border:1px solid #ffffff4b;box-shadow:inset 0 1px 0 #ffffff45;border-radius:24px;padding:12px;flex-shrink:0}.hero .logo svg{width:100%;height:100%}.hero h1{font-size:clamp(29px,3.2vw,46px);letter-spacing:-.045em}.hero h1 em{color:#d5ff9e}.hero .eyebrow{color:#c9f7c6}.hero-nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px;padding-top:18px;border-top:1px solid #ffffff36;position:relative}.hero-nav a{display:flex;align-items:center;gap:9px;color:white;text-decoration:none;background:#ffffff16;border:1px solid #ffffff28;border-radius:14px;padding:11px 15px;font-weight:700;font-size:14px;transition:background .2s,transform .2s}.hero-nav a:hover,.hero-nav a:focus-visible{background:#ffffff35;transform:translateY(-1px)}.hero-nav svg{width:22px;height:22px;fill:none;stroke:#dcffa9;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.profile-switch{min-width:250px}.profile-switch select{border:2px solid #b8f0c9;font-weight:800;font-size:16px}.hero .brand{gap:20px}@media(max-width:750px){.hero{padding:22px 18px 16px}.hero-top{flex-direction:column;align-items:stretch}.hero-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hero-nav a{justify-content:center;flex-direction:column;text-align:center;gap:5px;padding:10px 5px;font-size:11px}.hero .logo{width:64px;height:64px;padding:10px}.hero .brand{gap:12px}.hero h1{font-size:29px}.profile-switch{min-width:0}}@media(max-width:380px){.hero-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:25px}}

/* Interfaz simplificada: búsqueda sin desplegable gigante */
.suggestions{display:grid;gap:6px;margin-top:7px;max-height:220px;overflow:auto}.suggestions button{border:1px solid #d8e8e4;border-radius:12px;background:#f3faf7;padding:11px 13px;text-align:left;font:inherit;cursor:pointer;color:#123c34}.suggestions button:hover{background:#d9f7eb}.exercise-inline{margin:20px 0;padding:20px;border:1px solid #bce9d8;border-radius:20px;background:#f5fcf8}.exercise-inline h3{margin-bottom:8px}.exercise-input{max-width:320px;margin:12px 0}.exercise-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.exercise-results>div{padding:12px;border:1px solid #d4e6e1;background:white;border-radius:14px}.exercise-results small{display:block;color:#537267;font-size:12px}.exercise-results strong{display:block;font-size:20px;margin-top:5px}.hero-nav a{font-size:16px;gap:8px}@media(max-width:600px){.exercise-results{grid-template-columns:1fr 1fr}.exercise-results>div:last-child{grid-column:1/-1}}

/* Navegación simple por pantallas; configuración solo en ajustes */
[hidden]{display:none!important}.hero-nav .nav-tab{display:flex;align-items:center;justify-content:center;gap:9px;background:#ffffff16;color:#fff;border:1px solid #ffffff36;border-radius:14px;padding:12px 18px;font:inherit;font-weight:750;cursor:pointer}.hero-nav .nav-tab.active{background:#fff;color:#08644b}.hero-nav .nav-tab:hover{background:#ffffff35}.hero-nav .nav-tab.active:hover{background:#fff}.onboarding{max-width:900px;margin:0 auto 18px}.welcome{background:#fff;border:1px solid #c7e7d7;border-radius:24px;padding:24px;box-shadow:var(--shadow)}.welcome h2{font-size:27px;margin:6px 0}.welcome p{color:#536d7c}.setup-progress{background:#eaf8f1;color:#086b51;padding:10px 14px;border-radius:12px;margin:12px 0;font-weight:800}.advanced{margin-top:16px}.advanced summary{cursor:pointer;color:#076e5a;font-weight:800;padding:12px;background:#edf8f2;border-radius:12px}.advanced[open] summary{margin-bottom:12px}body.setup-mode #appMain section:not(#datos){display:none!important}body.setup-mode #datos{display:block!important;max-width:900px;margin:0 auto}body.setup-mode .hero-nav{display:none}body.setup-mode #guardarPerfil,body.setup-mode #calcularBtn{display:none}body.setup-mode .advanced{display:none}body.setup-mode #onboarding{display:block!important}body:not(.setup-mode) #onboarding{display:none!important}body:not(.setup-mode) [data-view]:not(.view-active){display:none!important}@media(max-width:750px){.hero-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.hero-nav .nav-tab{flex-direction:column;padding:10px 4px;font-size:12px;gap:3px}.welcome{padding:18px}}@media(max-width:400px){.hero-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-nav .nav-tab{font-size:11px}}

/* Acceso con Google y perfil aislado */
.auth-gate{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:linear-gradient(145deg,#e7fff0,#edf6ff);padding:20px}.auth-gate[hidden]{display:none}.auth-card{background:#fff;max-width:450px;width:100%;padding:38px 28px;border-radius:26px;box-shadow:0 20px 70px #123b2924;text-align:center}.auth-card h2{font-size:30px;color:#075c49}.auth-card p{color:#536a65;line-height:1.6;margin:16px 0}.auth-mark{font-size:48px;color:#07996f}.auth-card button{width:100%}.cloud-mode #perfil{display:none!important}.cloud-mode #googleUserLabel{display:block;font-weight:700;overflow-wrap:anywhere;font-size:14px}.cloud-mode #logoutGoogle{display:block!important;margin-top:8px}.cloud-mode .profile-switch label{display:none}.cloud-mode .onboarding .welcome{max-width:650px}

/* Restauración fiel de la navegación del diseño aprobado */
body.setup-mode .hero-nav{display:flex!important}
body.setup-mode .hero-nav .nav-tab:not([data-tab="ajustes"]){opacity:.6;cursor:not-allowed}
body.setup-mode #onboarding{display:none!important}
body.setup-mode #datos{display:block!important;max-width:none!important;width:100%;margin:0!important}
body.setup-mode #setupSaveInline{display:inline-flex!important;align-items:center;justify-content:center}
body.setup-mode #guardarPerfil,body.setup-mode #calcularBtn{display:none!important}
.profile-switch{display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:340px}
.google-account{font-size:12px;color:#d1f8e4;overflow-wrap:anywhere}
.profile-display-name{font-size:20px;color:white;line-height:1.3;overflow-wrap:anywhere}
#nombre{font-size:19px;font-weight:750;border:2px solid #10a782}
@media(min-width:901px){.shell{padding:24px 32px 48px}.hero,.card{width:100%}}
@media(max-width:750px){body.setup-mode .hero-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))}.profile-switch{max-width:100%}}
@media(max-width:600px){.shell{padding:12px}.fields{grid-template-columns:1fr}.profile-display-name{font-size:18px}}

/* Tres alternativas claras y registro manual opcional */
.menu-option{border:2px solid #cfe9dc;border-radius:22px;background:#fff;padding:22px;margin:16px 0;box-shadow:0 8px 22px rgba(20,80,50,.05)}
.menu-option-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #e0eee8;padding-bottom:10px}
.menu-option-head h3{margin:0;font-size:21px;color:#075c43}.menu-meal{padding:11px 0;border-bottom:1px solid #edf3f1}.menu-meal strong{font-size:15px}.menu-meal p{margin:5px 0 0;color:#536d7c;font-size:14px}.menu-option>.btn{margin-top:16px;width:100%}
.manual-entry{margin:16px 0;border:1px solid #d8e9e3;border-radius:16px;padding:14px;background:#f8fcfa}.manual-entry summary{cursor:pointer;font-weight:800;color:#08735e}.manual-entry[open] summary{margin-bottom:14px}
@media(max-width:600px){.menu-option{padding:16px}.menu-option-head{align-items:flex-start}.menu-option-head .badge{white-space:normal}}

.chosen-menu{margin:20px 0;padding:22px;border:2px solid #a7e9d0;border-radius:24px;background:#f2fcf8}
.chosen-menu h3{margin:0 0 8px;color:#075d47}
.chosen-menu .food-row{gap:12px;align-items:center}
.chosen-menu .food-row button{background:#078c71;color:#fff;border:0;border-radius:12px;padding:12px 15px;font-weight:750;cursor:pointer}
.chosen-menu .btn{margin-top:12px}
@media(max-width:600px){.chosen-menu{padding:14px}.chosen-menu .food-row{flex-wrap:wrap}.chosen-menu .food-row button{width:100%}}

/* Interfaz de lectura clara, iconografía vectorial y controles accesibles */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
body,input,button,select,textarea{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.nav-icon{width:19px;height:19px;display:inline-block;flex-shrink:0;vertical-align:middle;margin-right:6px}
.nav-tab{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.manual-entry{border:2px solid #b9e8da;background:#f6fcfa}
.manual-entry summary{font-size:17px;font-weight:750}
#buscarAlimento,#cantidad,#ejercicioKcal{font-size:18px}
#comidas .meals:empty{display:none}
#comidas .meal{margin-bottom:12px}
#comidas .food-row{padding:14px 0}
@media(max-width:620px){.nav-icon{width:17px;height:17px;margin-right:2px}.nav-tab{font-size:13px;padding:10px 8px}.manual-entry summary{font-size:16px}}

.extra-preview{background:#eaf9f2;border:1px solid #9cdec3;border-radius:14px;padding:16px;font-size:17px;font-weight:750;color:#075c49;min-height:58px;display:flex;align-items:center}
#conversionWrap small{display:block;margin-top:8px;font-size:13px}
#lista .food-row button{border:1px solid #f4b9b9;border-radius:12px;background:#fff1f1;color:#9d2424;padding:11px 15px;font-weight:750;cursor:pointer}
#lista .food-row small{display:block;color:#59718a;margin-top:5px}
@media(max-width:620px){.extra-preview{font-size:16px}}

/* Acceso renovado: iconografía propia de alimentos, sin símbolos decorativos */
.auth-mark{display:flex;align-items:center;justify-content:center;width:94px;height:94px;margin:0 auto 20px;background:#e8f9f1;border:2px solid #c6eada;border-radius:25px;font-size:initial}
.auth-food-icon{display:block;width:70px;height:70px}
.food-record-group h3{font-size:17px;display:flex;align-items:center;justify-content:space-between}
.food-record-group .food-row{min-height:60px}
.empty-foods{padding:18px;border-radius:16px;background:#f5faf9}
@media(max-width:600px){.auth-mark{width:82px;height:82px}.auth-food-icon{width:62px;height:62px}}
