/**
 * Estilos del Sitio Público — Carolina Tierno
 * Mobile-first, cálido, orgánico, femenino y moderno.
 */

body.public-body {
  padding-top: var(--navbar-height);
}

/* =========================================================
   1) NAVBAR SUPERIOR FIJA
   ========================================================= */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background-color: var(--green-primary);
  color: var(--text-on-dark);
  z-index: var(--z-navbar);
  box-shadow: 0 4px 20px rgba(30, 51, 35, 0.14);
  transition: background-color var(--transition);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-on-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.14);
  border: 1.5px solid rgba(242, 232, 207, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-warm);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: 2px;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: background-color var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: #FFFFFF;
  background-color: rgba(219, 204, 197, 0.18);
}

.navbar-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo-badge {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--bg-logo-sand);
  background-color: var(--bg-logo-sand);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.navbar-logo-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.navbar-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: rgba(250, 248, 245, 0.1);
  border: 1px solid rgba(250, 248, 245, 0.22);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--bg-cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil desplegable */
.mobile-nav-drawer {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background-color: var(--green-primary-dark);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(250, 248, 245, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-115%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  z-index: calc(var(--z-navbar) - 1);
}

.mobile-nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-drawer .nav-link {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
}

@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-toggle,
  .mobile-nav-drawer { display: none; }
}

/* =========================================================
   SECCIONES COMUNES
   ========================================================= */
.section {
  padding: 4rem 0;
  scroll-margin-top: calc(var(--navbar-height) + 12px);
}

.section-warm {
  background-color: var(--bg-warm);
}

.section-soft {
  background-color: var(--bg-warm-soft);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.4rem;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .section { padding: 5.25rem 0; }
}

/* =========================================================
   7) SECCIÓN DE VENTA (BLOQUE PRINCIPAL / HERO + DESTACADOS)
   ========================================================= */
.hero-section {
  padding: 2.75rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-warm-soft) 0%, var(--bg-cream) 100%);
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--navbar-height);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.06rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--bg-surface);
  aspect-ratio: 4 / 3;
  background-color: var(--bg-warm);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-tag {
  position: absolute;
  bottom: -14px;
  left: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.05rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-primary);
}

.hero-floating-tag .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-coral);
}

/* Bloque de productos destacados dentro de la sección de venta */
.featured-strip {
  margin-top: 3.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border-color);
}

.featured-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1rem;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.featured-thumb {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-warm);
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info h3 {
  font-size: 1.18rem;
  margin-bottom: 0.25rem;
}

.featured-price {
  font-weight: 700;
  color: var(--green-primary);
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.25rem;
  }
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Secciones personalizadas de Venta */
.sales-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.sales-banner-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 5px solid var(--bg-surface);
  aspect-ratio: 16 / 10;
  background-color: var(--bg-warm);
}

.sales-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 820px) {
  .sales-banner-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

/* =========================================================
   2) SECCIÓN "QUIÉN SOY"
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}

.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-warm);
  border: 1.5px solid var(--border-color);
  z-index: 0;
}

.about-photo-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-surface);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-bio {
  font-size: 1.02rem;
}

.about-bio blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.35rem;
  border-left: 3.5px solid var(--green-secondary);
  background-color: var(--bg-warm-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--green-primary);
}

.about-bio ul,
.about-bio ol {
  padding-left: 1.3rem;
  color: var(--text-secondary);
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 4rem;
  }
}

/* =========================================================
   3) SECCIÓN TIENDA / PRODUCTOS
   ========================================================= */
.store-section-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
}

.store-tab-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.store-tab-btn:hover {
  border-color: var(--green-secondary);
  color: var(--green-primary);
}

.store-tab-btn.is-active {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--text-on-dark);
}

.store-section-group {
  margin-bottom: 3rem;
}

.store-section-group:last-child {
  margin-bottom: 0;
}

.store-section-heading {
  margin-bottom: 1.35rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-color);
}

.store-section-heading h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
}

.store-section-heading p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.product-card,
.workshop-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover,
.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-warm-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card:hover .card-media img,
.workshop-card:hover .card-media img {
  transform: scale(1.04);
}

.card-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(250, 248, 245, 0.94);
  color: var(--green-primary);
  padding: 0.3rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.45rem;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.45rem;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1.15rem;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-primary);
}

.card-stock {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =========================================================
   4) SECCIÓN TALLERES
   ========================================================= */
.workshop-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-primary);
  background-color: var(--bg-warm-soft);
  padding: 0.38rem 0.82rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.workshop-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

/* =========================================================
   5) SECCIÓN AGENDA (LISTA CRONOLÓGICA + CALENDARIO)
   ========================================================= */
.agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.85rem;
}

.segmented-control {
  display: inline-flex;
  background-color: var(--bg-warm);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.segmented-btn {
  border: 0;
  background: transparent;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color var(--transition), color var(--transition);
}

.segmented-btn.is-active {
  background-color: var(--green-primary);
  color: var(--text-on-dark);
}

.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agenda-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1.15rem;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-xs);
}

@media (min-width: 720px) {
  .agenda-item {
    grid-template-columns: 84px 1fr auto;
  }
}

.agenda-date-box {
  background-color: var(--bg-warm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  text-align: center;
  color: var(--green-primary);
}

.agenda-date-day {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.agenda-date-month {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-secondary);
  margin-top: 2px;
}

.agenda-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.agenda-actions {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .agenda-actions {
    grid-column: auto;
  }
}

/* Calendario mensual */
.calendar-shell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-month-label {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-primary);
  text-transform: capitalize;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-secondary);
  text-transform: uppercase;
  padding: 0.45rem 0;
}

.calendar-cell {
  min-height: 76px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 64, 48, 0.14);
  padding: 0.4rem;
  background-color: var(--bg-cream);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-cell.is-empty {
  background-color: transparent;
  border-color: transparent;
}

.calendar-cell.is-today {
  border-color: var(--green-secondary);
  background-color: var(--bg-warm-soft);
}

.calendar-day-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.calendar-event-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  padding: 0.24rem 0.42rem;
  background-color: var(--green-primary);
  color: var(--text-on-dark);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event-chip:hover {
  background-color: var(--accent-vital);
}

/* =========================================================
   6) CONTACTO + FOOTER
   ========================================================= */
.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 780px) {
  .contact-card {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 3rem;
  }
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.contact-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--green-secondary-soft);
  color: var(--green-primary);
  display: grid;
  place-items: center;
}

.contact-cta-box {
  background-color: var(--bg-warm-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.site-footer {
  background-color: var(--green-primary);
  color: var(--text-on-dark-muted);
  padding: 2.5rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

/* =========================================================
   8) BOTÓN FLOTANTE DE WHATSAPP (SIEMPRE VISIBLE)
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--accent-vital);
  color: #FFFFFF;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(166, 75, 74, 0.36);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  background-color: var(--accent-coral);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(224, 122, 95, 0.42);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .whatsapp-float {
    padding: 0.9rem;
    border-radius: 50%;
  }
  .whatsapp-float-label {
    display: none;
  }
}
