/* VERDEA — capa visual de marca y componentes propios del rediseño. */
:root {
  --brand-accent: #a5d66b;
  --brand-line: #264534;
  --brand-panel: #10271b;
}

/* Una banda breve fija la idea de la marca y da ritmo entre el hero y los servicios. */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.2vw, 42px);
  min-height: 74px;
  padding: 15px 24px;
  border-block: 1px solid #21392b;
  background: #0b120e;
  color: #dce8d8;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.brand-strip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 14px rgba(186,255,109,.45);
}

.brand-strip span { white-space: nowrap; }

/* Care informa con cuatro fichas; no introduce acciones comerciales independientes. */
.care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.care-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid #2f4434;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 95% 2%, rgba(122,177,99,.12), transparent 37%),
    linear-gradient(145deg, #132018, #0f1812 72%);
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
  transition: border-color .25s ease, transform .25s cubic-bezier(.22,.72,.18,1), box-shadow .25s ease;
}

.care-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 2px;
  background: #74945e;
  content: "";
  transition: width .25s ease, background .25s ease;
}

.care-card:hover {
  transform: translateY(-3px);
  border-color: #5b7654;
  box-shadow: 0 24px 52px rgba(0,0,0,.24);
}

.care-card:hover::before { width: 116px; background: var(--brand-accent); }
.care-card-pedidos::before, .care-card-tienda::before { background: var(--brand-accent); }

.care-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.care-card-index { color: #9ab28a; font-size: .69rem; font-weight: 700; letter-spacing: .14em; }

.care-plan-tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 10px;
  border: 1px solid #3c5842;
  border-radius: 999px;
  color: #d0dfc7;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.care-card-title {
  max-width: 24ch;
  margin: 24px 0 7px;
  color: #f1f5ef;
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  letter-spacing: -.055em;
  line-height: 1.08;
}

.care-card-audience { min-height: 3.4em; color: #a3b0a6; font-size: .82rem; line-height: 1.65; }
.care-card-note { min-height: 4.3em; margin: 0 0 13px; color: #d1d4c2; font-size: .76rem; line-height: 1.65; }

.care-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #23402f;
}

.care-price-value { color: #f1f6ed; font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.65rem); font-weight: 800; letter-spacing: -.065em; line-height: 1; }
.care-price-unit { color: #b0beaf; font-size: .75rem; font-weight: 600; }

.care-free-period {
  align-self: flex-start;
  margin-top: 13px;
  padding: 7px 10px;
  border: 1px solid rgba(186,255,109,.22);
  background: rgba(186,255,109,.07);
  color: #d6edc4;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.45;
}

.care-includes-label { margin: 20px 0 8px; color: #dce8d8; font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.care-card-includes {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #b7c4b7;
  font-size: .75rem;
  line-height: 1.6;
  list-style: none;
}

.care-card-includes li { position: relative; padding-left: 19px; overflow-wrap: anywhere; }
.care-card-includes li::before { position: absolute; top: .55em; left: 2px; width: 8px; height: 5px; border-bottom: 1.5px solid var(--brand-accent); border-left: 1.5px solid var(--brand-accent); content: ""; transform: rotate(-45deg); }

.care-billing-note {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-top: 21px;
  padding: 17px 19px;
  border: 1px solid #47533a;
  border-left: 2px solid #76b85b;
  background: linear-gradient(100deg, rgba(211,195,121,.09), rgba(255,255,255,.012));
}

.care-note-mark { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #847b52; border-radius: 50%; color: #e6dbad; font-family: Georgia, serif; font-size: .85rem; font-style: italic; }
.care-billing-note p { color: #d1d4c2; font-size: .76rem; line-height: 1.75; }
.care-billing-note ul { display: grid; gap: 8px; margin: 12px 0; padding-left: 20px; color: #d1d4c2; font-size: .76rem; line-height: 1.65; }
.care-billing-note li::marker { color: #76b85b; }
.plans-smallprint ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 25px; margin: 8px 0 0; padding-left: 18px; }
.care-card-includes { overflow-wrap: anywhere; }

body.home-page .home-plan-summary { display: flex; flex-wrap: wrap; gap: 8px; max-width: 600px; margin-top: 18px; }
body.home-page .home-plan-summary span { padding: 7px 10px; border: 1px solid #344738; color: #dce5d8; font-size: .72rem; line-height: 1.4; }
body.home-page .home-whatsapp { display: inline-flex; margin-top: 12px; color: #a5d66b; font-size: .82rem; font-weight: 700; text-underline-offset: 4px; }
body.home-page .home-whatsapp[hidden] { display: none; }

body:not(.admin-page) .service-item { grid-template-rows: auto auto auto; grid-template-areas: "no title art" ". copy art" ". action art"; }
body:not(.admin-page) .service-item > .home-service-link { grid-area: action; justify-self: start; align-self: start; }
body:not(.admin-page) .about-profile { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); gap: clamp(25px,6vw,76px); align-items: center; padding-bottom: 72px; }
body:not(.admin-page) .about-profile-visual { display: grid; min-height: 300px; place-items: center; overflow: hidden; border: 1px solid #344b38; background: radial-gradient(ellipse at 50% 45%,rgba(186,255,109,.14),transparent 28%),linear-gradient(145deg,#1c2a20,#101612 65%); color: #a5d66b; font-family: var(--display); font-size: 1.2rem; letter-spacing: .14em; }
body:not(.admin-page) .about-profile h2 { max-width: 14ch; margin: 8px 0 14px; color: var(--ink); font-family: var(--display); font-size: clamp(1.8rem,3.6vw,2.7rem); line-height: 1.12; letter-spacing: -.05em; }
body:not(.admin-page) .about-profile p:last-child { max-width: 55ch; color: var(--muted); line-height: 1.8; }
@media (max-width: 640px) { body:not(.admin-page) .about-profile { grid-template-columns: 1fr; padding-bottom: 55px; } body:not(.admin-page) .about-profile-visual { min-height: 220px; } }

.care-terms { margin-top: 24px; }
.care-terms > div { align-content: start; }

/* Responsive con márgenes y controles cómodos hasta 320 px. */
@media (max-width: 740px) {
  .brand-strip { min-height: 66px; gap: 12px 18px; padding-inline: 18px; font-size: .61rem; letter-spacing: .1em; }
  .brand-strip i { width: 4px; height: 4px; }
  .care-grid { grid-template-columns: 1fr; gap: 13px; }
  .care-card { padding: 23px 20px; }
  .care-card-audience { min-height: 0; }
  .care-card-note { min-height: 0; }
  .care-billing-note { padding: 15px; }
  .admin-page .admin-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 0;
  }
  .admin-page .admin-tab {
    width: 100%;
    min-width: 0;
    flex: initial;
    align-items: center;
    white-space: normal;
    line-height: 1.3;
  }
}

@media (max-width: 740px) {
  body:not(.admin-page) .service-item { grid-template-areas: "no title" ". copy" ". action" "art art"; }
}

@media (max-width: 380px) {
  .brand-strip { gap: 9px 12px; font-size: .56rem; }
  .care-card-head { align-items: flex-start; }
  .care-plan-tag { max-width: 100%; white-space: normal; }
  .care-price-value { font-size: 2.1rem; }
}

@media (max-width: 480px) {
  .admin-page .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 320px) {
  body { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .care-card, .care-card::before { transition-duration: .01ms !important; }
}

/* Nombre de cuenta dinámico: el valor completo sigue en el DOM; solo se limita su ancho visual. */
body:not(.admin-page) .auth-area,
body:not(.admin-page) .account { min-width: 0; max-width: 100%; }
body:not(.admin-page) .account-summary {
  max-width: 100%;
  min-width: 0;
  gap: 8px;
}
body:not(.admin-page) .account-summary .avatar { flex: 0 0 30px; }
body:not(.admin-page) .account-summary > span:last-of-type {
  display: block;
  min-width: 0;
  max-width: clamp(96px, 15vw, 190px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.admin-page) .account-summary::after { flex: 0 0 6px; }
body:not(.admin-page) .account-panel { width: min(280px, calc(100vw - 28px)); max-width: calc(100vw - 24px); }
body:not(.admin-page) .account-panel strong { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 740px) {
  body:not(.admin-page) .account-summary > span:last-of-type { max-width: clamp(72px, 22vw, 150px); }
}
@media (max-width: 380px) {
  body:not(.admin-page) .account-summary { gap: 6px; }
  body:not(.admin-page) .account-summary > span:last-of-type { max-width: 76px; }
}
/* El desplegable de sesión se ancla al inicio del control en el menú móvil. */
@media (max-width: 1100px) {
  body:not(.admin-page) .account-panel { right: auto; left: 0; }
}@media (max-width: 1100px) {
  body:not(.admin-page) .account-panel { width: min(280px, calc(100vw - 88px)); max-width: calc(100vw - 88px); }
}@media (max-width: 1100px) {
  body:not(.admin-page) .account[open] .account-panel { top: auto; bottom: calc(100% + 8px); }
}
