
:root{
  --g:#173D2D;--gd:#102E22;--i:#F4F0E6;--p:#F7F4EE;--o:#B69A62;--m:#687068;
  --line:rgba(23,61,45,.10);--shadow:0 14px 34px rgba(16,46,34,.08);
}
*{box-sizing:border-box}
html{background:var(--p)}
body{margin:0;background:var(--p);color:var(--gd);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}
.sg-app{min-height:100dvh;max-width:860px;margin:0 auto;background:var(--p);padding-bottom:96px;overflow:hidden}

.sg-hero{position:relative;min-height:430px;padding:18px 22px 28px;border-bottom-left-radius:24px;border-bottom-right-radius:24px;overflow:hidden;color:var(--i);background:linear-gradient(135deg,#0f2f24 0%, #173D2D 58%, #325235 100%)}
.sg-hero__media{position:absolute;inset:0;background:url('/app/hero-v5.webp') right center/cover no-repeat;opacity:1}
.sg-hero__overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,46,34,.98) 0%,rgba(16,46,34,.92) 34%,rgba(16,46,34,.70) 58%,rgba(16,46,34,.20) 100%)}
.sg-hero__top,.sg-hero__copy{position:relative;z-index:2}
.sg-hero__top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sg-brand{display:flex;align-items:flex-start;gap:14px;max-width:78%}
.sg-brand__mark{width:52px;height:52px;border-radius:15px;background:transparent;border:1px solid rgba(244,240,230,.18);display:grid;place-items:center;box-shadow:0 8px 18px rgba(0,0,0,.16);padding:0;overflow:hidden;flex:0 0 auto}
.sg-brand__mark img{display:block;width:100%;height:100%;object-fit:cover}
.sg-brand__logo{display:block;width:min(400px,100%);height:auto;margin-top:1px}
.sg-menu{font-size:30px;line-height:1;color:var(--o);padding-top:2px}
.sg-hero__copy{max-width:520px;padding-top:64px}
.sg-hero h1{margin:0;font:400 clamp(44px,8vw,64px)/.96 Georgia,serif;letter-spacing:-.03em;color:var(--i)}
.sg-hero__line{width:240px;max-width:62%;height:1px;background:var(--o);margin:18px 0 16px;position:relative}
.sg-hero__line::before{content:'✦';position:absolute;left:-1px;top:-11px;color:var(--o);font-size:14px}
.sg-hero p{max-width:420px;margin:0;color:rgba(244,240,230,.92);font-size:13px;line-height:1.5}

.sg-install{margin:16px 16px 0;padding:14px 15px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;gap:12px}
.sg-install[hidden]{display:none}
.sg-install div{font-size:12px;line-height:1.45}.sg-install strong{display:block;font-size:13px;margin-bottom:2px}
.sg-install button{flex:0 0 auto;border:0;border-radius:999px;background:var(--g);color:#fff;padding:10px 14px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;cursor:pointer}

.sg-section{padding:24px 16px 0}.sg-eyebrow{font-size:11px;letter-spacing:.20em;color:var(--o);font-weight:700;margin:0 0 10px;text-transform:uppercase}.sg-section h2{font:400 34px/1.08 Georgia,serif;margin:0 0 18px}
.sg-grid--tools{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.sg-card{min-height:146px;padding:18px 16px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.9);box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left}
.sg-card--primary{grid-column:1 / span 1}
.sg-card__icon{width:40px;height:40px;border-radius:12px;background:#EFEDE6;color:var(--g);display:grid;place-items:center;font-size:20px;margin-bottom:18px}
.sg-card h3{margin:0 0 8px;font:700 15px/1.25 Arial,Helvetica,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:var(--gd)}
.sg-card p{margin:0;color:var(--m);font-size:12px;line-height:1.45}
.sg-wide{margin-top:12px;min-height:108px;padding:16px 18px;border-radius:22px;background:rgba(255,255,255,.9);border:1px solid var(--line);box-shadow:var(--shadow);display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:16px}
.sg-wide__icon{width:40px;height:40px;border-radius:12px;background:#EFEDE6;color:var(--g);display:grid;place-items:center;font-size:22px}
.sg-wide h3{margin:0 0 4px;font:700 15px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:var(--gd)}
.sg-wide p{margin:0;color:var(--m);font-size:12px;line-height:1.45}
.sg-wide__arrow{font-size:26px;color:var(--o);padding:0 4px}

.sg-bottom{position:fixed;z-index:50;left:50%;bottom:0;transform:translateX(-50%);width:min(860px,100%);height:82px;padding:8px 10px max(8px,env(safe-area-inset-bottom));background:rgba(16,46,34,.985);display:grid;grid-template-columns:repeat(5,1fr);border-radius:26px 26px 0 0;border-top:1px solid rgba(244,240,230,.10)}
.sg-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;color:rgba(244,240,230,.72);font-size:10px;gap:5px}.sg-bottom a b{font-size:23px;font-weight:400;color:var(--i)}
.sg-bottom a.is-active,.sg-bottom a.is-active b{color:var(--o)}
.sg-bottom a.sg-bottom__main b{width:58px;height:58px;border-radius:50%;margin-top:-30px;background:var(--o);color:var(--g);display:grid;place-items:center;border:4px solid var(--g);font-size:26px}

.sg-pagehead{padding:28px 20px 22px;background:var(--g);color:var(--i)}
.sg-pagehead a{color:var(--o);font-size:12px}.sg-pagehead h1{font:400 33px/1 Georgia,serif;margin:16px 0 7px}.sg-pagehead p{font-size:12px;color:rgba(244,240,230,.75);margin:0}
.sg-form,.sg-plant-list{padding:18px}.sg-form{display:grid;gap:10px}
.sg-form input,.sg-form textarea,.sg-form select{width:100%;border:1px solid rgba(23,61,45,.18);background:#fff;border-radius:13px;padding:12px 13px;color:var(--gd);outline:none}
.sg-form textarea{min-height:82px;resize:vertical}.sg-form button{border:0;border-radius:13px;padding:13px 16px;background:var(--g);color:#fff;font-weight:700;cursor:pointer}
.sg-plant-list{display:grid;gap:10px}.sg-myplant{background:#fff;border:1px solid rgba(23,61,45,.12);border-radius:16px;padding:14px 15px;box-shadow:0 8px 20px rgba(16,46,34,.04)}
.sg-myplant__top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.sg-myplant h3{font:400 21px/1.1 Georgia,serif;margin:0 0 4px}.sg-myplant small{color:var(--m)}.sg-myplant p{font-size:11px;color:var(--m);line-height:1.5;margin:11px 0}.sg-myplant button{border:1px solid rgba(23,61,45,.14);background:transparent;color:var(--g);border-radius:999px;padding:7px 10px;font-size:9px;text-transform:uppercase;letter-spacing:.04em}.sg-empty{padding:26px 18px;color:var(--m);font-size:12px;text-align:center}

@media(max-width:760px){
  .sg-app{max-width:none}
  .sg-hero{min-height:600px;padding:18px 20px 40px;border-bottom-left-radius:28px;border-bottom-right-radius:28px}
  .sg-brand{max-width:82%}
  .sg-brand__mark{width:58px;height:58px;border-radius:16px}
  .sg-brand__logo{width:min(360px,100%)}
  .sg-menu{font-size:34px}
  .sg-hero__copy{padding-top:108px;max-width:520px}
  .sg-hero h1{font-size:clamp(48px,10.8vw,76px)}
  .sg-grid--tools{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .sg-hero{min-height:575px}
  .sg-hero__media{background-position:right bottom;background-size:auto 100%}
  .sg-hero__overlay{background:linear-gradient(90deg,rgba(16,46,34,.97) 0%,rgba(16,46,34,.88) 38%,rgba(16,46,34,.58) 64%,rgba(16,46,34,.18) 100%)}
  .sg-brand{gap:10px;max-width:80%}
  .sg-brand__mark{width:52px;height:52px;border-radius:14px;padding:7px}
  .sg-brand__logo{width:min(290px,100%)}
  .sg-menu{font-size:30px;padding-top:2px}
  .sg-hero__copy{padding-top:126px}
  .sg-hero h1{font-size:clamp(42px,12vw,64px)}
  .sg-hero__line{width:180px;max-width:60%}
  .sg-hero p{font-size:14px;max-width:330px}
  .sg-section h2{font-size:31px}
  .sg-grid--tools{grid-template-columns:1fr 1fr;gap:10px}
  .sg-card{min-height:142px;padding:16px 14px}
  .sg-card__icon{margin-bottom:14px}
  .sg-card h3,.sg-wide h3{font-size:14px}
  .sg-card p,.sg-wide p{font-size:11px}
  .sg-wide{grid-template-columns:44px 1fr auto;padding:14px 16px;gap:12px}
  .sg-bottom{border-radius:22px 22px 0 0}
}
@media(max-width:400px){
  .sg-brand__logo{width:min(250px,100%)}
  .sg-hero__copy{padding-top:118px}
}

@media(max-width:560px){.sg-brand__logo{width:min(270px,100%)} .sg-brand__mark{width:52px;height:52px;border-radius:14px}}


/* =========================================================
   V5 · CABECERA MÓVIL MÁS COMPACTA
========================================================= */
@media(max-width:560px){
  .sg-hero{
    min-height:455px!important;
    padding:15px 16px 30px!important;
    border-bottom-left-radius:24px!important;
    border-bottom-right-radius:24px!important;
  }

  .sg-hero__media{
    background-image:url('/app/hero-v5.webp')!important;
    background-position:68% center!important;
    background-size:cover!important;
  }

  .sg-menu{
    display:none!important;
  }

  .sg-brand{
    max-width:100%!important;
    width:100%!important;
    gap:9px!important;
  }

  .sg-brand__mark{
    width:48px!important;
    height:48px!important;
    border-radius:13px!important;
    flex:0 0 48px!important;
  }

  .sg-brand__logo{
    width:min(270px,calc(100vw - 86px))!important;
    max-height:48px!important;
    object-fit:contain!important;
    object-position:left center!important;
    margin-top:0!important;
  }

  .sg-hero__copy{
    padding-top:86px!important;
    max-width:360px!important;
  }

  .sg-hero h1{
    font-size:clamp(38px,11.2vw,54px)!important;
    line-height:.98!important;
  }

  .sg-hero__line{
    width:165px!important;
    margin:20px 0 18px!important;
  }

  .sg-hero p{
    max-width:315px!important;
    font-size:13px!important;
    line-height:1.45!important;
  }
}

/* =========================================================
   V5 · MIS PLANTAS / MIS DESEOS
========================================================= */
.sg-collection-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:16px 18px 0;
}
.sg-collection-tab{
  border:1px solid rgba(23,61,45,.15);
  background:#fff;
  color:var(--g);
  border-radius:999px;
  padding:11px 12px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.sg-collection-tab.is-active{
  background:var(--g);
  color:#fff;
}
.sg-wish-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.sg-wish-actions button{
  margin:0;
}


/* =========================================================
   V6 · MI JARDÍN
========================================================= */
[hidden]{display:none!important}

.sg-collection-tabs{
  position:sticky;
  top:0;
  z-index:10;
  padding:14px 18px;
  background:rgba(247,244,238,.96);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(23,61,45,.08);
}
.sg-collection-tab{
  cursor:pointer;
}
.sg-plant-list{
  padding-top:14px!important;
}
.sg-myplant{
  overflow:hidden;
}
.sg-myplant__image{
  display:block;
  width:100%;
  height:180px;
  margin:-14px -15px 14px;
  max-width:calc(100% + 30px);
  object-fit:cover;
  object-position:center;
}
.sg-myplant__summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin:13px 0;
}
.sg-myplant__summary span{
  min-width:0;
  padding:9px 8px;
  background:#F7F4EE;
  border-radius:10px;
  color:#687068;
  font-size:10px;
  line-height:1.3;
}
.sg-myplant__summary b{
  display:block;
  margin-bottom:4px;
  color:#173D2D;
  font-size:8px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.sg-myplant__notes{
  padding:10px 11px;
  background:rgba(182,154,98,.09);
  border-radius:10px;
}
.sg-myplant__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:11px;
}
.sg-myplant__actions button,
.sg-myplant__actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 11px;
  border:1px solid rgba(23,61,45,.16);
  border-radius:999px;
  background:transparent;
  color:#173D2D;
  font-size:9px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.sg-myplant__actions button:first-child{
  background:#173D2D;
  color:#F4F0E6;
}
.sg-myplant__editor{
  margin-top:14px;
  padding-top:14px;
  display:grid;
  gap:9px;
  border-top:1px solid rgba(23,61,45,.10);
}
.sg-myplant__editor label{
  display:grid;
  gap:5px;
}
.sg-myplant__editor label>span{
  color:#687068;
  font-size:9px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.sg-myplant__editor input,
.sg-myplant__editor select,
.sg-myplant__editor textarea{
  width:100%;
  padding:10px 11px;
  border:1px solid rgba(23,61,45,.16);
  border-radius:10px;
  background:#fff;
  color:#173D2D;
}
.sg-myplant__editor textarea{
  min-height:78px;
  resize:vertical;
}
.sg-myplant__editor-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.sg-myplant__editor-actions button{
  border:0!important;
  border-radius:10px!important;
  padding:11px 10px!important;
  background:#173D2D!important;
  color:#F4F0E6!important;
  font-size:9px!important;
  font-weight:700!important;
}
.sg-myplant__editor-actions button:last-child{
  background:#B69A62!important;
  color:#173D2D!important;
}
.sg-empty{
  padding:34px 20px!important;
}
.sg-empty strong{
  display:block;
  margin-bottom:8px;
  color:#173D2D;
  font:400 22px/1.15 Georgia,serif;
}
.sg-empty p{
  max-width:430px;
  margin:0 auto 14px;
  color:#687068;
  font-size:12px;
  line-height:1.55;
}
.sg-empty__link{
  display:inline-block;
  padding:10px 13px;
  border-radius:999px;
  background:#173D2D;
  color:#F4F0E6;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
}

@media(max-width:560px){
  .sg-collection-tabs{
    padding:12px 14px;
  }
  .sg-myplant__summary{
    grid-template-columns:1fr;
  }
  .sg-myplant__image{
    height:150px;
  }
  .sg-myplant__editor-actions{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   V7 · ACCIONES RÁPIDAS EN MIS PLANTAS
========================================================= */
.sg-myplant__actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
}
.sg-myplant__actions button,
.sg-myplant__actions a{
  width:100%!important;
  min-width:0!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.2!important;
}
.sg-myplant__actions [data-water-today]{
  background:#B69A62!important;
  color:#173D2D!important;
  border-color:#B69A62!important;
}
.sg-myplant__editor-actions--single{
  grid-template-columns:1fr!important;
}
@media(max-width:430px){
  .sg-myplant__actions{
    grid-template-columns:1fr 1fr!important;
  }
  .sg-myplant__actions [data-water-today]{
    grid-column:1/-1!important;
  }
}


/* =========================================================
   V8 · RESUMEN EN UNA SOLA FILA + ACCESO PERMANENTE A LA GUÍA
========================================================= */
.sg-myplant__summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
}
.sg-myplant__summary span{
  min-width:0!important;
  text-align:center!important;
}
.sg-myplant__summary span:first-child{
  text-align:left!important;
}
.sg-myplant__summary span:last-child{
  text-align:right!important;
}
.sg-guide-access{
  padding:12px 18px 0;
}
.sg-guide-access a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  padding:10px 14px;
  border:1px solid rgba(23,61,45,.16);
  border-radius:999px;
  background:#F4F0E6;
  color:#173D2D;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

/* Mantener siempre la fila de 3 datos también en móvil */
@media(max-width:560px){
  .sg-myplant__summary{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
  }
  .sg-myplant__summary span{
    padding:8px 5px!important;
    font-size:8.5px!important;
    line-height:1.25!important;
  }
  .sg-myplant__summary b{
    font-size:6.8px!important;
  }
  .sg-guide-access{
    padding:10px 14px 0;
  }
}


/* =========================================================
   V9 · PÁGINAS EXCLUSIVAS DE LA WEB APP
========================================================= */
.sg-app--subpage{padding-bottom:84px}
.sg-subhero{
  position:relative;
  padding:18px 18px 28px;
  overflow:hidden;
  background:
    radial-gradient(circle at 86% 0%,rgba(182,154,98,.22),transparent 38%),
    linear-gradient(145deg,#173D2D,#102E22);
  color:#F4F0E6;
  border-bottom-left-radius:26px;
  border-bottom-right-radius:26px;
}
.sg-subhero__back{
  position:absolute;top:16px;right:16px;z-index:2;
  width:36px;height:36px;display:grid;place-items:center;
  border:1px solid rgba(244,240,230,.22);border-radius:50%;
  color:#F4F0E6!important;font-size:18px;
}
.sg-subhero__brand{display:flex;align-items:center;gap:9px;padding-right:50px}
.sg-subhero__brand .sg-brand__mark{width:42px;height:42px;flex:0 0 42px;border-radius:12px}
.sg-subhero__logo{width:min(230px,calc(100vw - 112px));max-height:42px;object-fit:contain;object-position:left center}
.sg-subhero__eyebrow{margin:34px 0 9px;color:#B69A62;font-size:8px;font-weight:700;letter-spacing:.18em}
.sg-subhero h1{margin:0;color:#F4F0E6;font:400 38px/.98 Georgia,serif;letter-spacing:-.025em}
.sg-subhero h1 em{color:#B69A62;font-weight:400}
.sg-subhero__text{max-width:330px;margin:13px 0 0;color:rgba(244,240,230,.72);font-size:11px;line-height:1.5}

.sg-app-content{padding:18px 14px 30px}
.sg-app-status{padding:28px 10px;text-align:center;color:#687068;font-size:12px}
.sg-app-status.is-error{color:#7a3131}

.sg-app-search{
  min-height:44px;padding:0 13px;
  display:flex;align-items:center;gap:9px;
  background:#fff;border:1px solid rgba(23,61,45,.12);border-radius:14px;
}
.sg-app-search span{color:#B69A62;font-size:18px}
.sg-app-search input{
  width:100%;height:42px;border:0!important;outline:0;background:transparent;
  color:#173D2D;font-size:13px;
}
.sg-app-filter-row{
  margin:10px -14px 2px;padding:0 14px 4px;
  display:flex;gap:7px;overflow:auto;scrollbar-width:none;
}
.sg-app-filter-row::-webkit-scrollbar{display:none}
.sg-app-filter-row button{
  flex:0 0 auto;padding:7px 11px;border:1px solid rgba(23,61,45,.15);
  border-radius:999px;background:#F4F0E6;color:#173D2D;
  font-size:9px;font-weight:700;
}
.sg-app-filter-row button.is-active{background:#173D2D;color:#F4F0E6;border-color:#173D2D}

.sg-app-plant-grid{
  margin-top:14px;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
}
.sg-app-plant-card{
  min-width:0;overflow:hidden;background:#fff;border:1px solid rgba(23,61,45,.10);
  border-radius:16px;color:#173D2D!important;box-shadow:0 5px 18px rgba(16,46,34,.05);
}
.sg-app-plant-card__image{height:128px;overflow:hidden;background:#ece8df}
.sg-app-plant-card__image img{width:100%;height:100%;object-fit:cover}
.sg-app-plant-card__placeholder{height:100%;display:grid;place-items:center;font-size:34px;color:#B69A62}
.sg-app-plant-card__body{padding:10px 10px 12px}
.sg-app-plant-card__body small{display:block;margin-bottom:4px;color:#B69A62;font-size:7px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.sg-app-plant-card__body h2{margin:0;color:#173D2D;font:400 16px/1.05 Georgia,serif}
.sg-app-plant-card__body p{margin:4px 0 0;color:#687068;font-size:9px;line-height:1.3}
.sg-app-empty-card{
  grid-column:1/-1;padding:28px 20px;display:flex;flex-direction:column;gap:5px;
  text-align:center;background:#fff;border-radius:16px;color:#173D2D;
}
.sg-app-empty-card span{color:#687068;font-size:10px}

.sg-ai-app-card{
  overflow:hidden;background:#fff;border:1px solid rgba(23,61,45,.10);
  border-radius:20px;box-shadow:0 8px 28px rgba(16,46,34,.06);
}
.sg-ai-app-upload{padding:12px}
.sg-ai-app-preview{
  min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:8px;overflow:hidden;border-radius:15px;background:#ECE8DF;color:#687068;
}
.sg-ai-app-preview>span{color:#B69A62;font-size:34px}
.sg-ai-app-preview p{margin:0;font-size:11px}
.sg-ai-app-preview img{width:100%;height:250px;object-fit:contain;background:#ECE8DF}
.sg-ai-app-actions{margin-top:9px;display:grid;grid-template-columns:1fr 1fr;gap:7px}
.sg-ai-app-actions button{
  min-height:42px;padding:9px 10px;border:1px solid #173D2D;border-radius:12px;
  background:#173D2D;color:#F4F0E6;font-size:10px;font-weight:700;
}
.sg-ai-app-actions button+button{background:#F4F0E6;color:#173D2D}

.sg-ai-app-result{padding:15px;border-top:1px solid rgba(23,61,45,.10)}
.sg-ai-app-result>small{display:block;margin-bottom:8px;color:#B69A62;font-size:7px;font-weight:800;letter-spacing:.14em}
.sg-ai-app-result>img{
  width:100%;max-height:210px;margin-bottom:12px;object-fit:contain;border-radius:13px;background:#ECE8DF;
}
.sg-ai-app-result h2{margin:0;color:#173D2D;font:400 24px/1.05 Georgia,serif}
.sg-ai-app-result p{margin:8px 0 0;color:#687068;font-size:11px;line-height:1.5}
.sg-ai-app-botanical{color:#B69A62!important;font-style:italic}
.sg-ai-app-confidence{margin-top:9px;color:#173D2D;font-size:9px;font-weight:700}
.sg-ai-app-guide-link{
  margin-top:12px;min-height:42px;padding:10px 12px;display:flex;align-items:center;justify-content:center;
  border-radius:12px;background:#173D2D;color:#F4F0E6!important;font-size:9px;font-weight:800;
}
.sg-ai-app-web{margin-top:12px;padding:11px;border-radius:12px;background:#F7F4EE}
.sg-ai-app-web strong{color:#173D2D;font-size:9px}
.sg-ai-app-list{margin:10px 0 0;padding-left:18px;color:#687068;font-size:11px;line-height:1.45}
.sg-ai-app-list li+li{margin-top:6px}
.sg-ai-app-disclaimer{margin:12px 6px 0;color:#687068;font-size:8px;line-height:1.4;text-align:center}

@media(min-width:700px){
  .sg-app--subpage{max-width:720px;margin:0 auto}
  .sg-app-plant-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* =========================================================
   V9.2 · CORRECCIONES DE NAVEGACIÓN, HERO Y CONTACTO PWA
========================================================= */

/* Eliminar la estrella decorativa de la línea de la portada */
.sg-hero__line::before{
  content:none!important;
  display:none!important;
}

/* Identificar debe permanecer destacado en TODAS las páginas */
.sg-bottom a.sg-bottom__main b{
  width:58px!important;
  height:58px!important;
  border-radius:50%!important;
  margin-top:-30px!important;
  background:var(--o)!important;
  color:var(--g)!important;
  display:grid!important;
  place-items:center!important;
  border:4px solid var(--g)!important;
  font-size:26px!important;
}

/* Portada móvil: reducción real del hero/cabecera.
   Estas reglas están al FINAL para que no las anule el bloque V5 anterior. */
@media(max-width:560px){
  .sg-hero{
    min-height:165px!important;
    padding:8px 12px 12px!important;
    border-bottom-left-radius:18px!important;
    border-bottom-right-radius:18px!important;
  }

  .sg-hero__media{
    background-image:url('/app/hero-v5.webp')!important;
    background-position:68% center!important;
    background-size:cover!important;
  }

  .sg-hero__overlay{
    background:linear-gradient(90deg,
      rgba(16,46,34,.97) 0%,
      rgba(16,46,34,.86) 42%,
      rgba(16,46,34,.52) 70%,
      rgba(16,46,34,.14) 100%)!important;
  }

  .sg-brand{
    gap:6px!important;
  }

  .sg-brand__mark{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
    border-radius:9px!important;
    padding:0!important;
  }

  .sg-brand__logo{
    width:min(205px,calc(100vw - 62px))!important;
    max-height:34px!important;
  }

  .sg-hero__copy{
    padding-top:20px!important;
    max-width:260px!important;
  }

  .sg-hero h1{
    font-size:27px!important;
    line-height:.96!important;
  }

  .sg-hero__line{
    width:105px!important;
    max-width:50%!important;
    margin:8px 0 7px!important;
  }

  .sg-hero p{
    max-width:250px!important;
    font-size:9px!important;
    line-height:1.3!important;
  }
}

/* Contacto PWA */
.sg-contact-app{
  padding-bottom:28px;
}
.sg-contact-app__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.sg-contact-app__card{
  min-width:0;
  min-height:104px;
  padding:13px 11px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border:1px solid rgba(23,61,45,.11);
  border-radius:16px;
  background:#fff;
  color:#173D2D!important;
  box-shadow:0 5px 18px rgba(16,46,34,.05);
}
.sg-contact-app__icon{
  width:31px;height:31px;margin-bottom:auto;
  display:grid;place-items:center;
  border-radius:9px;background:#F4F0E6;
  color:#B69A62;font-size:15px;font-weight:700;
}
.sg-contact-app__card small,
.sg-contact-app__place small,
.sg-contact-app__label{
  display:block;
  color:#B69A62;
  font-size:7px;
  font-weight:800;
  letter-spacing:.13em;
}
.sg-contact-app__card strong{
  margin-top:4px;
  color:#173D2D;
  font-size:11px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.sg-contact-app__card--wide{
  grid-column:1/-1;
  min-height:82px;
  display:grid;
  grid-template-columns:38px 1fr auto;
  align-items:center;
  gap:10px;
}
.sg-contact-app__card--wide .sg-contact-app__icon{
  margin:0;
}
.sg-contact-app__card--wide p{
  margin:3px 0 0;
  color:#687068;
  font-size:8px;
}
.sg-contact-app__card--wide>b{
  color:#B69A62;
  font-size:18px;
}

.sg-contact-app__place,
.sg-contact-app__form-wrap{
  margin-top:10px;
  padding:15px;
  border:1px solid rgba(23,61,45,.10);
  border-radius:17px;
  background:#fff;
}
.sg-contact-app__place h2{
  margin:7px 0 5px;
  color:#173D2D;
  font:400 22px/1.05 Georgia,serif;
}
.sg-contact-app__place p{
  margin:0;
  color:#687068;
  font-size:10px;
  line-height:1.45;
}
.sg-contact-app__place a{
  margin-top:10px;
  display:inline-flex;
  color:#173D2D!important;
  font-size:9px;
  font-weight:800;
}

.sg-contact-app__form{
  margin-top:10px;
  display:grid;
  gap:7px;
}
.sg-contact-app__form input,
.sg-contact-app__form select,
.sg-contact-app__form textarea{
  width:100%;
  border:1px solid rgba(23,61,45,.14)!important;
  border-radius:10px!important;
  background:#F7F4EE!important;
  color:#173D2D!important;
  outline:0!important;
  box-shadow:none!important;
  font:400 10px/1.35 Arial,Helvetica,sans-serif!important;
}
.sg-contact-app__form input,
.sg-contact-app__form select{
  height:34px!important;
  min-height:34px!important;
  padding:0 10px!important;
}
.sg-contact-app__form textarea{
  min-height:58px!important;
  padding:8px 10px!important;
  resize:vertical;
}
.sg-contact-app__form button{
  min-height:38px;
  padding:9px 11px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border:0;
  border-radius:10px;
  background:#173D2D;
  color:#F4F0E6;
  font-size:9px;
  font-weight:800;
}

/* V9.3 · El icono S independiente ya no aparece dentro de la interfaz */
.sg-brand__mark{display:none!important}


/* =========================================================
   V9.4 · CONSEJOS PWA + CERRAR SESIÓN
========================================================= */
.sg-advice-hero{
  position:relative;
  min-height:220px;
  overflow:hidden;
  border-bottom-left-radius:24px;
  border-bottom-right-radius:24px;
  color:#F4F0E6;
}
.sg-advice-hero__image{
  position:absolute;inset:0;
  background:url("https://dev.spartagarden.com/wp-content/uploads/2026/08/Consejos-y-Cuidados-Cabecera.webp") center 48%/cover no-repeat;
}
.sg-advice-hero__shade{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(16,46,34,.96) 0%,rgba(16,46,34,.78) 55%,rgba(16,46,34,.25) 100%);
}
.sg-advice-hero .sg-subhero__back{z-index:4}
.sg-advice-hero__content{
  position:relative;z-index:2;
  min-height:220px;
  padding:14px 18px 22px;
  display:flex;flex-direction:column;justify-content:flex-end;
}
.sg-advice-hero__logo{
  position:absolute;left:18px;top:15px;
  width:min(205px,calc(100vw - 86px));
  max-height:34px;object-fit:contain;object-position:left center;
}
.sg-advice-hero__content .sg-subhero__eyebrow{margin:0 0 6px}
.sg-advice-hero__content h1{
  margin:0;
  color:#F4F0E6;
  font:400 32px/.98 Georgia,serif;
  letter-spacing:-.025em;
}
.sg-advice-hero__content h1 em{color:#B69A62;font-weight:400}
.sg-advice-hero__content>p:last-child{
  max-width:270px;margin:8px 0 0;
  color:rgba(244,240,230,.78);
  font-size:9px;line-height:1.4;
}

.sg-advice-app{padding-top:16px}
.sg-advice-section+ .sg-advice-section{margin-top:24px}
.sg-advice-title{margin-bottom:11px}
.sg-advice-title small{
  color:#B69A62;font-size:7px;font-weight:800;letter-spacing:.14em;
}
.sg-advice-title h2{
  margin:5px 0 5px;color:#173D2D;
  font:400 25px/1.03 Georgia,serif;
}
.sg-advice-title h2 em{color:#B69A62;font-weight:400}
.sg-advice-title p{margin:0;color:#687068;font-size:9px;line-height:1.4}

.sg-advice-seasons{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
}
.sg-advice-season{
  position:relative;height:145px;overflow:hidden;
  border-radius:15px;color:#F4F0E6!important;
  background:#173D2D;
}
.sg-advice-season img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
.sg-advice-season__shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(16,46,34,.08),rgba(16,46,34,.86));
}
.sg-advice-season>div{
  position:absolute;inset:auto 0 0;
  z-index:2;padding:10px;
}
.sg-advice-season small{color:#B69A62;font-size:7px;font-weight:800}
.sg-advice-season h3{margin:2px 0 4px;color:#F4F0E6;font:400 18px/1 Georgia,serif}
.sg-advice-season b{font-size:7px;letter-spacing:.05em}

.sg-advice-topics{display:grid;gap:7px}
.sg-advice-topics>a{
  min-height:62px;padding:9px 10px;
  display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;
  border:1px solid rgba(23,61,45,.10);border-radius:13px;
  background:#fff;color:#173D2D!important;
}
.sg-advice-topics>a>span{
  width:32px;height:32px;display:grid;place-items:center;
  border-radius:9px;background:#F4F0E6;color:#B69A62;font-size:15px;
}
.sg-advice-topics h3{margin:0 0 2px;font:400 15px/1.05 Georgia,serif}
.sg-advice-topics p{margin:0;color:#687068;font-size:8px;line-height:1.3}
.sg-advice-topics>a>b{color:#B69A62;font-size:14px}

.sg-advice-feature{
  margin-top:24px;overflow:hidden;border-radius:17px;background:#173D2D;color:#F4F0E6;
}
.sg-advice-feature>img{width:100%;height:130px;object-fit:cover}
.sg-advice-feature>div{padding:14px}
.sg-advice-feature small{color:#B69A62;font-size:7px;font-weight:800;letter-spacing:.13em}
.sg-advice-feature h2{margin:5px 0 7px;font:400 22px/1.03 Georgia,serif}
.sg-advice-feature h2 em{color:#B69A62;font-weight:400}
.sg-advice-feature p{margin:0;color:rgba(244,240,230,.72);font-size:9px;line-height:1.4}
.sg-advice-feature a{
  margin-top:11px;min-height:36px;padding:8px 10px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(244,240,230,.28);border-radius:10px;
  color:#F4F0E6!important;font-size:8px;font-weight:800;
}

/* Cerrar sesión */
.sg-app-logout{
  margin-top:12px;padding:14px;
  border:1px solid rgba(23,61,45,.10);
  border-radius:17px;background:#fff;
}
.sg-app-logout button{
  width:100%;min-height:38px;padding:9px 11px;
  display:flex;align-items:center;justify-content:space-between;
  border:1px solid rgba(23,61,45,.30);border-radius:10px;
  background:transparent;color:#173D2D;
  font-size:9px;font-weight:800;cursor:pointer;
}
.sg-app-logout p{
  margin:6px 1px 0;color:#687068;font-size:7px;line-height:1.35;
}

@media(min-width:700px){
  .sg-advice-seasons{grid-template-columns:repeat(4,1fr)}
  .sg-advice-season{height:175px}
}


/* =========================================================
   V9.5 · NAVEGACIÓN SUPERIOR UNIFICADA
========================================================= */
.sg-pwa-back{
  position:absolute;
  top:14px;
  right:14px;
  z-index:6;
  min-height:34px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid rgba(244,240,230,.24);
  border-radius:999px;
  background:rgba(16,46,34,.24);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  color:#F4F0E6!important;
  font-size:8px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.sg-pwa-back span{
  color:#B69A62;
  font-size:15px;
  line-height:1;
}
.sg-pwa-back b{
  font:inherit;
}
.sg-subhero>.sg-subhero__back{
  display:none!important;
}

/* Mi jardín usa una cabecera distinta */
.sg-pagehead{
  position:relative;
}
.sg-pwa-back--pagehead{
  position:static!important;
  width:max-content;
  margin:0 0 12px;
  border-color:rgba(23,61,45,.16);
  background:#F4F0E6;
  color:#173D2D!important;
}
.sg-pwa-back--pagehead span{
  color:#B69A62;
}


/* V9.6 · imágenes de temporada sincronizadas con las páginas WordPress */
.sg-advice-season>img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}


/* =========================================================
   V9.7 · IDENTIDAD VISUAL UNIFICADA DE PÁGINAS INTERNAS
========================================================= */

/* Todas las páginas internas usan exactamente el mismo marco visual */
.sg-app--subpage{
  min-height:100vh;
  background:#F7F4EE;
  padding-bottom:92px;
}

.sg-app--subpage .sg-subhero{
  min-height:238px!important;
  padding:16px 18px 24px!important;
  border-bottom-left-radius:26px!important;
  border-bottom-right-radius:26px!important;
  position:relative!important;
  overflow:hidden!important;
  background:
    linear-gradient(90deg,rgba(23,61,45,.96) 0%,rgba(23,61,45,.92) 26%,rgba(16,46,34,.72) 46%,rgba(16,46,34,.38) 66%,rgba(16,46,34,.18) 100%),
    radial-gradient(circle at 88% -5%,rgba(182,154,98,.18),transparent 34%),
    var(--sg-subhero-image,linear-gradient(145deg,#173D2D 0%,#102E22 100%))!important;
  background-position:left top,left top,var(--sg-subhero-position,center center)!important;
  background-size:auto,auto,cover!important;
  background-repeat:no-repeat,no-repeat,no-repeat!important;
}

.sg-app--subpage .sg-subhero__brand{
  min-height:42px;
  padding-right:88px!important;
  display:flex!important;
  align-items:center!important;
}

.sg-app--subpage .sg-subhero__logo{
  width:min(235px,calc(100vw - 126px))!important;
  max-height:42px!important;
  object-fit:contain!important;
  object-position:left center!important;
}

.sg-app--subpage .sg-subhero__eyebrow{
  margin:30px 0 8px!important;
  color:#B69A62!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.18em!important;
}

.sg-app--subpage .sg-subhero h1{
  margin:0!important;
  color:#F4F0E6!important;
  font:400 38px/.97 Georgia,serif!important;
  letter-spacing:-.025em!important;
}

.sg-app--subpage .sg-subhero h1 em{
  color:#B69A62!important;
  font-weight:400!important;
}

.sg-app--subpage .sg-subhero__text{
  max-width:335px!important;
  margin:10px 0 0!important;
  color:rgba(244,240,230,.76)!important;
  font-size:10px!important;
  line-height:1.45!important;
}

/* Botón Volver igual en todas */
.sg-app--subpage .sg-pwa-back{
  top:14px!important;
  right:14px!important;
  min-height:34px!important;
  padding:0 11px!important;
  border-color:rgba(244,240,230,.24)!important;
  background:rgba(16,46,34,.28)!important;
  color:#F4F0E6!important;
}

/* Mi jardín ya no usa su antigua cabecera */
.sg-pagehead,
.sg-pwa-back--pagehead{
  display:none!important;
}

/* Consejos ya no usa hero fotográfico propio */
.sg-advice-hero{
  display:none!important;
}
.sg-advice-app{
  padding-top:18px!important;
}

/* Navegación inferior homogénea */
.sg-bottom a{
  white-space:nowrap;
}
.sg-bottom a b{
  line-height:1;
}

/* Ajuste móvil fino */
@media(max-width:560px){
  .sg-app--subpage .sg-subhero{
    min-height:222px!important;
    padding:14px 16px 22px!important;
  }
  .sg-app--subpage .sg-subhero__logo{
    width:min(218px,calc(100vw - 120px))!important;
    max-height:38px!important;
  }
  .sg-app--subpage .sg-subhero__eyebrow{
    margin-top:26px!important;
  }
  .sg-app--subpage .sg-subhero h1{
    font-size:35px!important;
  }
}

/* Logo principal de la portada, ya convertido físicamente a marfil */
.sg-brand__logo,
.sg-subhero__logo{
  opacity:1!important;
}


/* =========================================================
   V9.9 · CABECERAS CON FOTO · CORRECCIÓN DEFINITIVA
   La foto va en ::before y el degradado en ::after.
========================================================= */

.sg-app--subpage .sg-subhero{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  background:#173D2D!important;
}

/* Imagen */
.sg-app--subpage .sg-subhero::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-2!important;
  display:block!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
  opacity:1!important;
}

/* Capa verde para que logo y textos sigan siendo legibles */
.sg-app--subpage .sg-subhero::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-1!important;
  display:block!important;
  background:
    linear-gradient(90deg,
      rgba(16,46,34,.88) 0%,
      rgba(16,46,34,.78) 34%,
      rgba(16,46,34,.48) 62%,
      rgba(16,46,34,.18) 100%)!important;
  pointer-events:none!important;
}

.sg-app--subpage .sg-subhero > *{
  position:relative!important;
  z-index:2!important;
}

/* BUSCAR / GUÍA */
.sg-app--subpage .sg-subhero--guia::before{
  background-image:url('/app/header-guia.webp')!important;
  background-position:center center!important;
}

/* IDENTIFICAR */
.sg-app--subpage .sg-subhero--identificar::before{
  background-image:url('/app/header-identificar.webp')!important;
  background-position:center center!important;
}

/* MI JARDÍN */
.sg-app--subpage .sg-subhero--mi-jardin::before{
  background-image:url('/app/header-mi-jardin.webp')!important;
  background-position:center center!important;
}

/* CONTACTO */
.sg-app--subpage .sg-subhero--contacto::before{
  background-image:url('/app/header-contacto.webp')!important;
  background-position:center center!important;
}

/* En móvil mostramos un poco más de fotografía a la derecha */
@media(max-width:560px){
  .sg-app--subpage .sg-subhero::after{
    background:
      linear-gradient(90deg,
        rgba(16,46,34,.90) 0%,
        rgba(16,46,34,.74) 42%,
        rgba(16,46,34,.38) 70%,
        rgba(16,46,34,.10) 100%)!important;
  }

  .sg-app--subpage .sg-subhero--guia::before{
    background-position:62% center!important;
  }

  .sg-app--subpage .sg-subhero--identificar::before{
    background-position:62% center!important;
  }

  .sg-app--subpage .sg-subhero--mi-jardin::before{
    background-position:58% center!important;
  }

  .sg-app--subpage .sg-subhero--contacto::before{
    background-position:58% center!important;
  }
}


/* =========================================================
   V9.10 · CABECERA INICIO IGUAL A LAS PÁGINAS INTERNAS
========================================================= */

/* Elimina cualquier resto del icono hamburguesa de Inicio */
.sg-menu,
.sg-hero__menu,
.sg-hero__top > button,
.sg-hero__top .sg-menu{
  display:none!important;
}

/* Inicio: misma altura visual que las cabeceras internas */
.sg-hero{
  min-height:238px!important;
  border-bottom-left-radius:26px!important;
  border-bottom-right-radius:26px!important;
}

.sg-hero__top{
  padding:16px 18px 0!important;
  min-height:42px!important;
}

.sg-hero__copy{
  max-width:520px!important;
  padding:28px 18px 24px!important;
}

.sg-hero h1{
  font-size:38px!important;
  line-height:.97!important;
}

.sg-hero__line{
  width:54px!important;
  margin:13px 0 10px!important;
}

.sg-hero p{
  max-width:335px!important;
  font-size:10px!important;
  line-height:1.45!important;
}

/* Mantener el logo en una escala equivalente a las páginas internas */
.sg-brand__logo{
  width:min(235px,calc(100vw - 54px))!important;
  max-height:42px!important;
  object-fit:contain!important;
  object-position:left center!important;
}

/* Ya no reservamos espacio para botones Volver */
.sg-app--subpage .sg-subhero__brand{
  padding-right:0!important;
}

/* Ocultar estilos de volver que pudieran quedar cacheados */
.sg-pwa-back,
.sg-subhero__back,
.sg-pwa-back--pagehead{
  display:none!important;
}

@media(max-width:560px){
  .sg-hero{
    min-height:222px!important;
  }

  .sg-hero__top{
    padding:14px 16px 0!important;
  }

  .sg-hero__copy{
    padding:26px 16px 22px!important;
  }

  .sg-hero h1{
    font-size:35px!important;
  }

  .sg-brand__logo{
    width:min(218px,calc(100vw - 32px))!important;
    max-height:38px!important;
  }
}


/* =========================================================
   V9.11 · INICIO = MISMA CABECERA QUE EL RESTO DE LA PWA
========================================================= */
.sg-hero{
  position:relative!important;
  min-height:238px!important;
  padding:16px 18px 24px!important;
  overflow:hidden!important;
  isolation:isolate!important;
  border-bottom-left-radius:26px!important;
  border-bottom-right-radius:26px!important;
  background:#173D2D!important;
  color:#F4F0E6!important;
}

.sg-hero__media{
  position:absolute!important;
  inset:0!important;
  z-index:-2!important;
  display:block!important;
  background-image:url('/app/hero-v5.webp')!important;
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  opacity:1!important;
}

.sg-hero__overlay{
  position:absolute!important;
  inset:0!important;
  z-index:-1!important;
  display:block!important;
  background:
    linear-gradient(90deg,
      rgba(16,46,34,.88) 0%,
      rgba(16,46,34,.78) 34%,
      rgba(16,46,34,.48) 62%,
      rgba(16,46,34,.18) 100%)!important;
}

.sg-hero__top,
.sg-hero__copy{
  position:relative!important;
  z-index:2!important;
}

.sg-hero__top{
  min-height:42px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
}

.sg-brand{
  width:100%!important;
  max-width:none!important;
  display:flex!important;
  align-items:center!important;
}

.sg-brand__logo{
  display:block!important;
  width:min(235px,calc(100vw - 36px))!important;
  max-height:42px!important;
  height:auto!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:left center!important;
}

.sg-hero__copy{
  max-width:520px!important;
  padding:30px 0 0!important;
}

.sg-hero h1{
  margin:0!important;
  color:#F4F0E6!important;
  font:400 38px/.97 Georgia,serif!important;
  letter-spacing:-.025em!important;
}

.sg-hero h1 em{
  color:#B69A62!important;
  font-style:italic!important;
  font-weight:400!important;
}

.sg-hero__line{
  width:54px!important;
  max-width:none!important;
  height:1px!important;
  margin:13px 0 10px!important;
  background:#B69A62!important;
}

.sg-hero__line::before{
  content:none!important;
  display:none!important;
}

.sg-hero p{
  max-width:335px!important;
  margin:0!important;
  color:rgba(244,240,230,.76)!important;
  font-size:10px!important;
  line-height:1.45!important;
}

@media(max-width:560px){
  .sg-hero{
    min-height:222px!important;
    padding:14px 16px 22px!important;
  }

  .sg-hero__media{
    background-position:58% center!important;
  }

  .sg-hero__overlay{
    background:
      linear-gradient(90deg,
        rgba(16,46,34,.90) 0%,
        rgba(16,46,34,.74) 42%,
        rgba(16,46,34,.38) 70%,
        rgba(16,46,34,.10) 100%)!important;
  }

  .sg-hero__top{
    min-height:38px!important;
  }

  .sg-brand__logo{
    width:min(218px,calc(100vw - 32px))!important;
    max-height:38px!important;
  }

  .sg-hero__copy{
    padding-top:26px!important;
  }

  .sg-hero h1{
    font-size:35px!important;
  }
}


/* =========================================================
   V9.11 · FICHAS MULTICATEGORÍA
========================================================= */
.sg-app-plant-card__categories{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-bottom:5px;
}

.sg-app-plant-card__categories small{
  display:inline-flex;
  width:auto!important;
  margin:0!important;
  padding:3px 6px;
  border-radius:999px;
  background:#F4F0E6;
  color:#173D2D!important;
  font-size:6.5px!important;
  font-weight:800;
  line-height:1.1;
  letter-spacing:.06em;
  text-transform:uppercase;
}


/* =========================================================
   V9.12 · MI JARDÍN 2.0
========================================================= */
.sg-garden-week{
  margin:18px 14px 14px;
  padding:15px;
  border-radius:20px;
  background:#173D2D;
  color:#F4F0E6;
  box-shadow:0 10px 28px rgba(16,46,34,.10);
}
.sg-garden-week__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.sg-garden-week__head small{
  display:block;
  margin-bottom:4px;
  color:#B69A62;
  font-size:7px;
  font-weight:800;
  letter-spacing:.16em;
}
.sg-garden-week__head h2{
  margin:0;
  color:#F4F0E6;
  font:400 20px/1.05 Georgia,serif;
}
.sg-garden-week__head>span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(244,240,230,.16);
  border-radius:50%;
  background:rgba(244,240,230,.08);
  color:#B69A62;
  font-weight:800;
}
.sg-garden-week__list{display:grid;gap:7px}
.sg-week-task{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:8px;
  border-radius:13px;
  background:rgba(244,240,230,.07);
}
.sg-week-task img,
.sg-week-task__placeholder{
  width:42px;
  height:42px;
  border-radius:10px;
  object-fit:cover;
}
.sg-week-task__placeholder{
  display:grid;
  place-items:center;
  background:rgba(244,240,230,.08);
}
.sg-week-task b{display:block;color:#F4F0E6;font-size:10px}
.sg-week-task small{
  display:block;
  margin-top:2px;
  color:rgba(244,240,230,.68);
  font-size:8px;
  line-height:1.3;
}
.sg-week-task button,
.sg-week-task a{
  border:0;
  border-radius:999px;
  padding:7px 9px;
  background:#B69A62;
  color:#102E22;
  font-size:8px;
  font-weight:800;
  text-decoration:none;
}
.sg-week-empty{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:13px;
  background:rgba(244,240,230,.07);
}
.sg-week-empty>span{color:#B69A62;font-size:18px}
.sg-week-empty p{
  margin:0;
  color:rgba(244,240,230,.72);
  font-size:9px;
  line-height:1.4;
}
.sg-week-empty b{color:#F4F0E6}

.sg-myplant__care{
  display:flex;
  align-items:center;
  gap:8px;
  margin:10px 0;
  padding:9px 10px;
  border-radius:12px;
  background:#F7F4EE;
}
.sg-myplant__care span{
  flex:0 0 auto;
  border-radius:999px;
  padding:4px 7px;
  font-size:7px;
  font-weight:800;
  text-transform:uppercase;
}
.sg-myplant__care p{
  margin:0;
  color:#687068;
  font-size:8.5px;
  line-height:1.35;
}
.sg-myplant__care--late span,
.sg-myplant__care--today span{background:#B69A62;color:#102E22}
.sg-myplant__care--soon span{background:#EDE5D5;color:#173D2D}
.sg-myplant__care--ok span{background:#E6EEE9;color:#173D2D}
.sg-myplant__care--setup span{background:#EFEDE8;color:#687068}

.sg-myplant__actions--primary{margin-top:10px}
.sg-myplant__actions--primary button:first-child{
  background:#173D2D!important;
  color:#F4F0E6!important;
}
.sg-myplant__actions--secondary{margin-top:6px}
.sg-myplant__hint{
  margin:4px 0 0;
  color:#687068;
  font-size:8px;
  line-height:1.4;
}
.sg-wish-whatsapp{
  display:block;
  margin-top:8px;
  color:#173D2D;
  font-size:9px;
  font-weight:700;
  text-decoration:none;
}

/* Guardar desde Identificar */
.sg-ai-save-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:10px;
}
.sg-ai-save-actions button{
  min-height:40px;
  border:1px solid rgba(23,61,45,.14);
  border-radius:12px;
  background:#F7F4EE;
  color:#173D2D;
  font-size:9px;
  font-weight:800;
}
.sg-ai-save-actions button.is-saved{
  border-color:#173D2D;
  background:#173D2D;
  color:#F4F0E6;
}
.sg-ai-save-actions p{
  grid-column:1/-1;
  margin:0;
  color:#687068;
  font-size:8px;
}

/* Guardar desde la Guía */
.sg-app-plant-card__link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.sg-app-plant-card__save{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  padding:0 7px 7px;
}
.sg-app-plant-card__save button{
  min-width:0;
  border:1px solid rgba(23,61,45,.12);
  border-radius:8px;
  padding:6px 3px;
  background:#F7F4EE;
  color:#173D2D;
  font-size:6.7px;
  font-weight:800;
}
.sg-app-plant-card__save button.is-saved{
  background:#173D2D;
  color:#F4F0E6;
}

/* Diagnóstico abierto desde Mi jardín */
.sg-diagnose-context{
  margin:0 0 10px;
  padding:10px 12px;
  border:1px solid rgba(23,61,45,.10);
  border-radius:13px;
  background:#F4F0E6;
}
.sg-diagnose-context small{
  display:block;
  margin-bottom:3px;
  color:#B69A62;
  font-size:7px;
  font-weight:800;
  letter-spacing:.14em;
}
.sg-diagnose-context strong{
  color:#173D2D;
  font:400 17px/1.1 Georgia,serif;
}

@media(max-width:380px){
  .sg-ai-save-actions{grid-template-columns:1fr}
  .sg-ai-save-actions p{grid-column:1}
}


/* =========================================================
   V9.13 · MI JARDÍN · SOLO PLANTAS POR REGAR
========================================================= */
.sg-collection-tabs{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

.sg-collection-tab{
  position:relative;
  min-width:0;
}

.sg-tab-count{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  margin-left:3px;
  padding:0 5px;
  border-radius:999px;
  background:#B69A62;
  color:#102E22;
  font-size:7px;
  font-weight:900;
  vertical-align:middle;
}

.sg-collection-tab.is-active .sg-tab-count{
  background:#F4F0E6;
  color:#173D2D;
}

.sg-due-intro{
  margin:4px 14px 10px;
  padding:11px 12px;
  border-radius:13px;
  background:#F4F0E6;
}
.sg-due-intro small{
  display:block;
  margin-bottom:3px;
  color:#B69A62;
  font-size:7px;
  font-weight:800;
  letter-spacing:.14em;
}
.sg-due-intro p{
  margin:0;
  color:#687068;
  font-size:8.5px;
  line-height:1.4;
}

.sg-myplant--due{
  border:1px solid rgba(182,154,98,.30);
}

.sg-due-badge{
  flex:0 0 auto;
  padding:5px 7px;
  border-radius:999px;
  background:#B69A62;
  color:#102E22;
  font-size:7px;
  font-weight:900;
  letter-spacing:.05em;
}

.sg-due-status{
  margin:9px 0 10px;
  padding:9px 10px;
  border-radius:11px;
  background:#F7F4EE;
}
.sg-due-status b{
  display:block;
  color:#173D2D;
  font-size:9px;
}
.sg-due-status small{
  display:block;
  margin-top:3px;
  color:#687068;
  font-size:8px;
}

.sg-due-guide-link{
  display:block;
  margin-top:8px;
  color:#173D2D;
  font-size:8.5px;
  font-weight:700;
  text-decoration:none;
}

.sg-empty--water{
  text-align:center;
}
.sg-water-ok{
  display:inline-flex;
  margin-top:9px;
  padding:7px 10px;
  border-radius:999px;
  background:#E6EEE9;
  color:#173D2D;
  font-size:8px;
  font-weight:800;
}

@media(max-width:390px){
  .sg-collection-tabs{
    gap:4px!important;
  }
  .sg-collection-tab{
    padding-left:5px!important;
    padding-right:5px!important;
    font-size:8px!important;
  }
}


/* =========================================================
   V9.14 · MI JARDÍN + LOGO CENTRADO
========================================================= */

/* Gestionar: neutro hasta que se abre la acción */
.sg-manage-btn{
  background:#F7F4EE!important;
  color:#173D2D!important;
  border:1px solid rgba(23,61,45,.14)!important;
}
.sg-manage-btn.is-active{
  background:#173D2D!important;
  color:#F4F0E6!important;
  border-color:#173D2D!important;
}

/* Mensaje de jardín al día */
.sg-week-empty--success{
  justify-content:center!important;
  text-align:center!important;
  min-height:58px;
}
.sg-week-empty--success p{
  margin:0!important;
  color:#F4F0E6!important;
  font-size:10px!important;
}
.sg-week-empty--success b{
  color:#F4F0E6!important;
}

/* Logo centrado en todas las páginas internas */
.sg-app--subpage .sg-subhero__brand{
  width:100%!important;
  min-height:42px!important;
  padding-right:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.sg-app--subpage .sg-subhero__logo{
  width:min(235px,72vw)!important;
  max-height:42px!important;
  margin:0 auto!important;
  object-fit:contain!important;
  object-position:center center!important;
}

/* Logo centrado también en Inicio */
.sg-hero__top{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.sg-brand{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.sg-brand__logo{
  width:min(235px,72vw)!important;
  max-height:42px!important;
  margin:0 auto!important;
  object-fit:contain!important;
  object-position:center center!important;
}

/* Los textos permanecen alineados a la izquierda */
.sg-hero__copy,
.sg-app--subpage .sg-subhero__eyebrow,
.sg-app--subpage .sg-subhero h1,
.sg-app--subpage .sg-subhero__text{
  text-align:left!important;
}

@media(max-width:560px){
  .sg-app--subpage .sg-subhero__logo,
  .sg-brand__logo{
    width:min(218px,70vw)!important;
    max-height:38px!important;
  }
}


/* =========================================================
   V9.15 · FICHA PERSONAL DE MANTENIMIENTO
========================================================= */

.sg-myplant__identity small{
  display:block;
}
.sg-myplant__purchase{
  margin:5px 0 0!important;
  color:#687068!important;
  font-size:8px!important;
  line-height:1.3!important;
}
.sg-myplant__purchase b{
  color:#173D2D;
  font-weight:800;
}

.sg-myplant__next{
  margin:10px 0 9px;
  padding:9px 11px;
  border-radius:12px;
  background:#F4F0E6;
}
.sg-myplant__next small{
  display:block;
  margin-bottom:2px;
  color:#B69A62;
  font-size:6.5px;
  font-weight:900;
  letter-spacing:.13em;
}
.sg-myplant__next strong{
  display:block;
  color:#173D2D;
  font-size:10px;
  line-height:1.3;
}
.sg-myplant__next--late{
  background:#EFE3D2;
}
.sg-myplant__next--today{
  background:#E9DEC7;
}
.sg-myplant__next--soon{
  background:#F1EBDD;
}

.sg-maintenance-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin:0 0 10px;
}
.sg-maintenance-box{
  min-width:0;
  padding:9px 9px 8px;
  border:1px solid rgba(23,61,45,.09);
  border-radius:12px;
  background:#FAF8F4;
}
.sg-maintenance-box small{
  display:block;
  min-height:17px;
  color:#B69A62;
  font-size:6px;
  font-weight:900;
  line-height:1.25;
  letter-spacing:.08em;
}
.sg-maintenance-box strong{
  display:block;
  margin-top:3px;
  color:#173D2D;
  font-size:9px;
  line-height:1.2;
}
.sg-maintenance-box span{
  display:block;
  margin-top:4px;
  color:#687068;
  font-size:7.2px;
  line-height:1.25;
}
.sg-maintenance-box--water{
  background:#F4F0E6;
}

.sg-myplant__editor--maintenance{
  margin-top:10px;
}
.sg-editor-section{
  margin-bottom:10px;
  padding:9px;
  border-radius:12px;
  background:#F7F4EE;
}
.sg-editor-section__title{
  margin:0 0 7px!important;
  color:#B69A62!important;
  font-size:6.5px!important;
  font-weight:900!important;
  letter-spacing:.13em!important;
}
.sg-editor-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.sg-editor-grid label{
  min-width:0;
}
.sg-editor-grid input,
.sg-editor-grid select{
  width:100%;
  min-width:0;
}

@media(max-width:370px){
  .sg-maintenance-grid{
    grid-template-columns:1fr;
  }
  .sg-maintenance-box small{
    min-height:0;
  }
  .sg-editor-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   V9.16 · FICHA DE PLANTA DENTRO DE LA PWA
========================================================= */
.sg-pwa-ficha-body{
  margin:0!important;
  overflow:hidden!important;
  background:#F7F4EE!important;
}
.sg-app--plant-sheet{
  position:relative;
  width:100%;
  height:100dvh;
  min-height:100vh;
  overflow:hidden;
  background:#F7F4EE;
}
.sg-pwa-ficha-frame{
  display:block;
  width:100%;
  height:calc(100dvh - 68px);
  min-height:calc(100vh - 68px);
  border:0;
  background:#F7F4EE;
}
.sg-pwa-ficha-loading{
  position:absolute;
  inset:0 0 68px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:#173D2D;
  color:#F4F0E6;
  z-index:2;
}
.sg-pwa-ficha-loading[hidden]{display:none!important}
.sg-pwa-ficha-loading img{
  width:min(220px,64vw);
  max-height:44px;
  object-fit:contain;
}
.sg-pwa-ficha-loading p{
  margin:0;
  color:rgba(244,240,230,.72);
  font-size:10px;
}
.sg-pwa-ficha-error{
  margin:25vh 18px 0;
  padding:20px;
  border-radius:18px;
  background:#F4F0E6;
  text-align:center;
  color:#173D2D;
}
.sg-pwa-ficha-error strong{
  display:block;
  margin-bottom:12px;
  font:400 20px/1.1 Georgia,serif;
}
.sg-pwa-ficha-error a{
  color:#173D2D;
  font-size:10px;
  font-weight:800;
}

/* La barra PWA queda por encima del contenido de la ficha. */
.sg-app--plant-sheet .sg-bottom{
  z-index:9999!important;
}


/* =========================================================
   V9.17 · HOY EN TU JARDÍN · MANTENIMIENTO COMPLETO
========================================================= */
.sg-week-task button[data-week-complete]{
  min-width:48px;
  padding-left:8px!important;
  padding-right:8px!important;
}
.sg-week-task--late{
  border:1px solid rgba(182,154,98,.28);
}


/* =========================================================
   V9.18 · BOTONERA 2 x 2 EN MI JARDÍN
========================================================= */
.sg-myplant__actions--two{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
.sg-myplant__actions--two > a,
.sg-myplant__actions--two > button{
  width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  text-align:center!important;
}

/* Diagnóstico con icono a la izquierda */
.sg-diagnose-btn img{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  object-fit:contain!important;
}
.sg-diagnose-btn span{
  line-height:1!important;
}

/* He regado hoy queda a la derecha de Diagnosticar */
.sg-water-btn{
  background:#173D2D!important;
  color:#F4F0E6!important;
}

/* Gestionar sigue neutro hasta abrirse */
.sg-manage-btn{
  background:#F7F4EE!important;
  color:#173D2D!important;
}
.sg-manage-btn.is-active{
  background:#173D2D!important;
  color:#F4F0E6!important;
}

@media(max-width:360px){
  .sg-myplant__actions--two > a,
  .sg-myplant__actions--two > button{
    font-size:7.5px!important;
    gap:4px!important;
  }
  .sg-diagnose-btn img{
    width:16px!important;
    height:16px!important;
    flex-basis:16px!important;
  }
}


/* =========================================================
   V9.19 · AJUSTE FINAL FICHA MI JARDÍN
========================================================= */

/* Imagen a sangre dentro de la tarjeta */
.sg-myplant--maintenance{
  overflow:hidden!important;
}

.sg-myplant--maintenance > .sg-myplant__image{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:220px!important;
  margin:0!important;
  border-radius:0!important;
  object-fit:cover!important;
  object-position:center center!important;
}

/* El contenido vuelve a tener su margen interior después de la imagen */
.sg-myplant--maintenance > .sg-myplant__top,
.sg-myplant--maintenance > .sg-myplant__next,
.sg-myplant--maintenance > .sg-maintenance-grid,
.sg-myplant--maintenance > .sg-myplant__notes,
.sg-myplant--maintenance > .sg-myplant__button-grid,
.sg-myplant--maintenance > .sg-myplant__editor{
  margin-left:14px!important;
  margin-right:14px!important;
}

/* La botonera queda debajo de toda la información, 2 arriba + 2 abajo */
.sg-myplant__button-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  margin-top:10px!important;
  margin-bottom:12px!important;
}

.sg-myplant__button-grid > a,
.sg-myplant__button-grid > button{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  text-align:center!important;
  text-decoration:none!important;
  font-size:8.5px!important;
  font-weight:800!important;
  line-height:1!important;
}

/* Fila superior */
.sg-diagnose-btn{
  background:#F7F4EE!important;
  color:#173D2D!important;
  border:1px solid rgba(23,61,45,.14)!important;
}

.sg-water-btn{
  background:#173D2D!important;
  color:#F4F0E6!important;
  border:1px solid #173D2D!important;
}

/* Fila inferior */
.sg-manage-btn,
.sg-view-sheet-btn{
  background:#F7F4EE!important;
  color:#173D2D!important;
  border:1px solid rgba(23,61,45,.14)!important;
}

.sg-manage-btn.is-active{
  background:#173D2D!important;
  color:#F4F0E6!important;
  border-color:#173D2D!important;
}

.sg-diagnose-btn img{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  object-fit:contain!important;
}

/* También aseguramos que cualquier otra imagen de ficha PWA llene el marco */
.sg-app-plant-card__image{
  overflow:hidden!important;
}

.sg-app-plant-card__image img{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  display:block!important;
}

@media(max-width:560px){
  .sg-myplant--maintenance > .sg-myplant__image{
    height:190px!important;
  }
}

@media(max-width:360px){
  .sg-myplant__button-grid > a,
  .sg-myplant__button-grid > button{
    font-size:7.5px!important;
    gap:4px!important;
    padding-left:5px!important;
    padding-right:5px!important;
  }
}


/* =========================================================
   V9.25 · MI JARDÍN · TARJETAS MÁS LEGIBLES
   Mantiene toda la información, pero aumenta la jerarquía visual.
========================================================= */

@media(max-width:1024px){

  /* Más aire entre fichas */
  .sg-plant-list{
    gap:16px!important;
    padding:18px 14px!important;
  }

  /* Tarjeta */
  .sg-myplant--maintenance{
    padding:0 0 16px!important;
    border-radius:18px!important;
    overflow:hidden!important;
  }

  /* Imagen más protagonista */
  .sg-myplant--maintenance > .sg-myplant__image{
    height:250px!important;
  }

  /* Zona de identidad */
  .sg-myplant--maintenance > .sg-myplant__top{
    margin:0!important;
    padding:18px 16px 0!important;
    align-items:flex-start!important;
    gap:12px!important;
  }

  .sg-myplant__identity h3,
  .sg-myplant h3{
    margin:0 0 5px!important;
    font-size:25px!important;
    line-height:1.05!important;
  }

  .sg-myplant__identity > small{
    font-size:13px!important;
    line-height:1.3!important;
  }

  .sg-myplant__purchase{
    margin:8px 0 0!important;
    font-size:11px!important;
    line-height:1.35!important;
  }

  .sg-myplant__top > button[data-plant-delete]{
    min-height:36px!important;
    padding:8px 11px!important;
    font-size:9px!important;
  }

  /* Próxima revisión */
  .sg-myplant--maintenance > .sg-myplant__next{
    margin:14px 16px 12px!important;
    padding:13px 14px!important;
    border-radius:13px!important;
  }

  .sg-myplant__next small{
    margin-bottom:4px!important;
    font-size:8px!important;
    line-height:1.15!important;
  }

  .sg-myplant__next strong{
    font-size:14px!important;
    line-height:1.3!important;
  }

  /* Cuidados principales 2 x 2 */
  .sg-myplant--maintenance > .sg-maintenance-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    margin:0 16px 14px!important;
  }

  .sg-maintenance-box{
    min-height:92px!important;
    padding:13px 12px 11px!important;
    border-radius:13px!important;
  }

  .sg-maintenance-box small{
    min-height:0!important;
    font-size:8px!important;
    line-height:1.2!important;
    letter-spacing:.07em!important;
  }

  .sg-maintenance-box strong{
    margin-top:6px!important;
    font-size:13px!important;
    line-height:1.2!important;
  }

  .sg-maintenance-box span{
    margin-top:6px!important;
    font-size:10px!important;
    line-height:1.3!important;
  }

  /* Notas */
  .sg-myplant--maintenance > .sg-myplant__notes{
    margin:0 16px 14px!important;
    font-size:12px!important;
    line-height:1.5!important;
  }

  /* Botones 2 x 2 más grandes */
  .sg-myplant--maintenance > .sg-myplant__button-grid{
    gap:9px!important;
    margin:0 16px 14px!important;
  }

  .sg-myplant__button-grid > a,
  .sg-myplant__button-grid > button{
    min-height:48px!important;
    padding:0 10px!important;
    font-size:11px!important;
    line-height:1.15!important;
    border-radius:12px!important;
  }

  .sg-diagnose-btn img{
    width:21px!important;
    height:21px!important;
    flex:0 0 21px!important;
  }

  /* El editor mantiene toda la información pero con campos legibles */
  .sg-myplant--maintenance > .sg-myplant__editor{
    margin:8px 16px 0!important;
  }

  .sg-editor-section{
    padding:13px!important;
    margin-bottom:12px!important;
  }

  .sg-editor-section__title{
    margin-bottom:9px!important;
    font-size:8px!important;
  }

  .sg-editor-grid{
    gap:9px!important;
  }

  .sg-myplant__editor label,
  .sg-myplant__editor label span{
    font-size:11px!important;
    line-height:1.3!important;
  }

  .sg-myplant__editor input,
  .sg-myplant__editor select,
  .sg-myplant__editor textarea{
    min-height:42px!important;
    font-size:13px!important;
  }
}

/* En móviles muy estrechos seguimos conservando 2 columnas de cuidados.
   Solo reducimos ligeramente los espacios, no la información. */
@media(max-width:370px){
  .sg-maintenance-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }

  .sg-maintenance-box{
    padding:10px 8px!important;
  }

  .sg-maintenance-box small{
    font-size:7px!important;
  }

  .sg-maintenance-box strong{
    font-size:11px!important;
  }

  .sg-maintenance-box span{
    font-size:8.5px!important;
  }

  .sg-myplant__button-grid > a,
  .sg-myplant__button-grid > button{
    min-height:46px!important;
    font-size:9px!important;
  }
}


/* =========================================================
   V9.26 · MI JARDÍN · ESTRUCTURA EN 3 NIVELES
========================================================= */
.sg-myplant__details[hidden],
.sg-myplant__editor[hidden]{display:none!important}

.sg-details-toggle{
  width:calc(100% - 32px)!important;
  min-height:50px!important;
  margin:0 16px 16px!important;
  padding:12px 16px!important;
  border:0!important;
  border-radius:12px!important;
  background:#173D2D!important;
  color:#F4F0E6!important;
  font:700 11px/1.1 Arial,Helvetica,sans-serif!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  cursor:pointer!important;
}
.sg-details-toggle__arrow{
  font-size:18px!important;
  line-height:1!important;
  transition:transform .2s ease!important;
}
.sg-details-toggle.is-active .sg-details-toggle__arrow{
  transform:rotate(180deg)!important;
}

@media(max-width:1024px){
  /* Nivel 1 */
  .sg-myplant--maintenance > .sg-myplant__image{height:245px!important}
  .sg-myplant--maintenance > .sg-myplant__top{padding:18px 16px 0!important}
  .sg-myplant__identity h3{font-size:26px!important;line-height:1.04!important}
  .sg-myplant__identity > small{display:block!important;margin-top:4px!important;font-size:13px!important}
  .sg-myplant--maintenance > .sg-myplant__next{margin:15px 16px 12px!important;padding:14px!important}
  .sg-myplant__next small{font-size:9px!important}
  .sg-myplant__next strong{margin-top:3px!important;font-size:16px!important}

  /* Nivel 2 */
  .sg-myplant__details .sg-maintenance-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    margin:0 16px 14px!important;
  }
  .sg-myplant__details .sg-maintenance-box{min-height:102px!important;padding:14px 12px!important}
  .sg-myplant__details .sg-maintenance-box small{font-size:9px!important}
  .sg-myplant__details .sg-maintenance-box strong{font-size:16px!important;line-height:1.15!important}
  .sg-myplant__details .sg-maintenance-box span{font-size:10px!important;line-height:1.3!important}
  .sg-myplant__details .sg-myplant__button-grid{margin:0 16px 15px!important;gap:9px!important}
  .sg-myplant__details .sg-myplant__button-grid > a,
  .sg-myplant__details .sg-myplant__button-grid > button{
    min-height:50px!important;
    font-size:11px!important;
  }

  /* Nivel 3 */
  .sg-myplant__details .sg-myplant__editor{margin:8px 16px 0!important;padding-bottom:4px!important}
}


/* =========================================================
   V9.27 · AVISOS PUSH · MI JARDÍN
========================================================= */
.sg-push-card{
  margin:16px 14px 8px;
  padding:18px;
  border:1px solid rgba(23,61,45,.13);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 26px rgba(16,46,34,.05);
}
.sg-push-card[hidden]{display:none!important}
.sg-push-card__copy small{
  display:block;
  margin:0 0 6px;
  color:#B69A62;
  font-size:9px;
  font-weight:800;
  letter-spacing:.11em;
}
.sg-push-card__copy h2{
  margin:0 0 7px;
  color:#173D2D;
  font-size:21px;
  line-height:1.05;
}
.sg-push-card__copy p{
  margin:0;
  color:#687068;
  font-size:12px;
  line-height:1.45;
}
.sg-push-card__actions{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:14px;
}
.sg-push-card__actions button{
  min-height:46px;
  border:1px solid #173D2D;
  border-radius:11px;
  background:#173D2D;
  color:#F4F0E6;
  font-size:11px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
  cursor:pointer;
}
.sg-push-card__actions .sg-push-test{
  background:transparent;
  color:#173D2D;
}
.sg-push-card__status{
  min-height:16px;
  margin:9px 0 0;
  color:#687068;
  font-size:10px;
  line-height:1.4;
}
.sg-push-card.is-on{
  border-color:rgba(182,154,98,.55);
}
.sg-push-card.is-on #sg-push-enable{
  background:#F4F0E6;
  color:#173D2D;
}


/* V9.28 · estado de activación push */
.sg-push-card__status{
  font-size:11px!important;
  line-height:1.45!important;
}
.sg-push-card__status:not(:empty){
  padding-top:2px;
}


/* =========================================================
   V9.29 · GESTIÓN DE NOTIFICACIONES EN CONTACTO
========================================================= */
.sg-contact-push{
  margin:18px 14px 24px;
  padding:18px;
  border:1px solid rgba(23,61,45,.13);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 26px rgba(16,46,34,.05);
}
.sg-contact-push__eyebrow{
  margin:0 0 6px!important;
  color:#B69A62!important;
  font-size:9px!important;
  font-weight:800!important;
  letter-spacing:.11em!important;
}
.sg-contact-push h2{
  margin:0 0 7px!important;
  color:#173D2D!important;
  font-size:21px!important;
  line-height:1.05!important;
}
.sg-contact-push__copy>p:last-child{
  margin:0!important;
  color:#687068!important;
  font-size:12px!important;
  line-height:1.45!important;
}
#sg-contact-push-disable{
  width:100%!important;
  min-height:46px!important;
  margin-top:14px!important;
  border:1px solid #173D2D!important;
  border-radius:11px!important;
  background:#F4F0E6!important;
  color:#173D2D!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
.sg-contact-push__status{
  min-height:15px;
  margin:9px 0 0!important;
  color:#687068!important;
  font-size:10px!important;
  line-height:1.4!important;
}


/* v9.37 · restaurar eliminación de plantas */
.sg-plant-delete-btn{
  flex:0 0 auto;
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(133,52,45,.34);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#85342D;
  font:700 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.04em;
  cursor:pointer;
}
.sg-plant-delete-btn:active{transform:scale(.98)}
@media(max-width:520px){
  .sg-plant-delete-btn{min-height:34px;padding:7px 10px;font-size:9px}
}
