/* ============================================================
   Estética Secret Garden — layout.css
   Header, hero, secciones, footer, responsive.
   ============================================================ */

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 229, 207, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(131, 133, 100, .15);
}

.header-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--contenedor);
  margin: 0 auto;
  padding: .75rem 1.25rem;
  min-height: var(--header-alto);
}

.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 3.25rem;
  width: auto;
  object-fit: contain;
  background: rgba(189, 190, 146, .25);
  border-radius: 4px;
  padding: 2px 4px;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--sg-verde-oscuro);
  padding: .35rem .25rem;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--sg-verde);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--sg-verde);
  border-radius: 2px;
}

/* Botón del carrito (siempre visible) */
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--sg-verde);
  color: var(--sg-crema);
  flex-shrink: 0;
  transition: background .2s ease, transform .15s ease;
}

.cart-toggle:hover {
  background: var(--sg-verde-oscuro);
  transform: scale(1.05);
}

.cart-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--sg-rosa);
  color: var(--sg-negro);
  font-size: .72rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-count.visible {
  display: inline-flex;
}

/* Hamburguesa */
.hamburger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: .5rem;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--sg-verde);
  border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
}

.hamburger.abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.abierto span:nth-child(2) { opacity: 0; }
.hamburger.abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 80vh;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--sg-negro);
}

.hero-default {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sg-crema) 0%, var(--sg-rosa-claro) 60%, var(--sg-verde-claro) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hero-default-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-default-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  background: rgba(255,255,255,.55);
  border-radius: 50%;
  padding: 10px;
  object-fit: contain;
  box-shadow: var(--sombra-md);
}

.hero h1 {
  color: var(--sg-verde);
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  margin-bottom: .6rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--sg-verde-oscuro);
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* Banners reales */
.banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.banner img,
.banner picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  color: #fff;
  text-align: center;
}

.banner-content h1,
.banner-content h2 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.banner-content p {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* Carrusel de banners */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.banner-slide.activo {
  opacity: 1;
  pointer-events: auto;
}

.banner-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 4;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8);
  padding: 0;
  transition: background .2s;
}

.banner-dot.activo {
  background: #fff;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background .2s;
}

.banner-arrow:hover { background: rgba(0,0,0,.5); }
.banner-arrow.prev { left: 1rem; }
.banner-arrow.next { right: 1rem; }

/* ------------------------------------------------------------
   Secciones
   ------------------------------------------------------------ */
.seccion {
  padding: 4rem 1.25rem;
  position: relative;
}

.seccion-alt {
  background: var(--sg-rosa-claro);
}

.seccion-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.seccion-head h2 {
  margin-bottom: .5rem;
}

.seccion-head p {
  color: var(--sg-gris);
  font-size: 1.1rem;
  margin: 0;
}

.seccion-head h3 {
  color: var(--color-acento);
}

/* ------------------------------------------------------------
   Nosotros
   ------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--contenedor);
  margin: 0 auto;
}

.about-text h2 {
  color: var(--sg-verde);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: .9rem;
  font-size: 1.075rem;
}

.about-media {
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-md);
  aspect-ratio: 4 / 5;
  background: var(--sg-verde-claro);
}

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

/* ------------------------------------------------------------
   Yoshimi (contenedor principal)
   ------------------------------------------------------------ */
.seccion-yoshimi {
  background: #fbf6f0;
  padding: 0;
}

.yoshimi-hero {
  position: relative;
  height: 60vh;
  min-height: 380px;
}

.yoshimi-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.yoshimi-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

/* ------------------------------------------------------------
   Contacto
   ------------------------------------------------------------ */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: var(--contenedor);
  margin: 0 auto;
}

.contacto-item {
  background: var(--sg-blanco);
  border-radius: var(--radio-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--sombra-sm);
  border: 1px solid rgba(131, 133, 100, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.contacto-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-md);
}

.contacto-item .icono {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sg-rosa-claro);
  border-radius: 50%;
  color: var(--sg-verde);
}

.contacto-item .icono svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contacto-item h3 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}

.contacto-item a {
  color: var(--sg-verde);
  font-weight: 600;
  word-break: break-word;
}

.contacto-item p {
  margin: 0;
  color: var(--sg-gris);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--sg-verde);
  color: var(--sg-crema);
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.site-footer .footer-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  background: rgba(240, 229, 207, .15);
  border-radius: 50%;
  padding: 8px;
  object-fit: contain;
}

.site-footer .footer-frase {
  font-family: var(--font-detalle);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sg-rosa-claro);
  margin-bottom: 1.5rem;
}

.site-footer .social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.site-footer .social a {
  color: var(--sg-crema);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: 4px;
  transition: background .2s ease;
}

.site-footer .social a:hover {
  background: rgba(240, 229, 207, .15);
  color: var(--sg-blanco);
}

.site-footer .social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .copyright {
  font-size: .875rem;
  opacity: .8;
  margin: 0;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .main-nav {
    gap: 1rem;
  }
  .main-nav a {
    font-size: .95rem;
  }
}

@media (max-width: 760px) {
  :root { --header-alto: 68px; }

  .hamburger {
    display: flex;
    order: 3;
  }

  .cart-toggle {
    margin-left: auto;
    order: 2;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sg-crema);
    border-bottom: 1px solid rgba(131, 133, 100, .2);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    box-shadow: var(--sombra-md);
  }

  .main-nav.abierto {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid rgba(131, 133, 100, .08);
  }

  .main-nav a:last-child { border-bottom: none; }

  .main-nav a.active::after { display: none; }

  .logo img { height: 2.75rem; }

  .hero {
    height: 72vh;
    min-height: 420px;
  }

  .hero-default-logo { width: 88px; height: 88px; }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-media {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .seccion { padding: 3rem 1rem; }

  .yoshimi-hero { height: 55vh; min-height: 340px; }

  .banner-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
/* Enlace discreto al panel admin */
.footer-admin-link {
  color: inherit;
  opacity: .55;
  font-size: .82em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity .2s ease;
}

.footer-admin-link:hover {
  opacity: 1;
  color: var(--sg-rosa-claro);
}