/* ========== Reset + Variables ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}

:root {
  --bg: #f5f0e6; /* Beige suave de fondo */
  --text: #1f2937; /* Gris oscuro legible */
  --muted: #6b7280;
  --brand: #0ea5e9; /* Celeste del título */
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Estilo para el texto del logo */
.logo p {
  font-family: 'Georgia', serif;   /* ← Puedes cambiar la fuente aquí */
  font-size: 1rem;               /* Tamaño del texto */
  font-weight: 600;                /* Grosor */
  color: #ffffff;                  /* COLOR: blanco */
  margin: 0;                       /* elimina espacios extra */
  letter-spacing: 1px;             /* separación elegante */
  text-transform: capitalize;      /* primer letra mayúscula */
}

/* ========== Header (mobile-first) ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #b80000; /* rojo bonito */
  padding: 8px 0;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 56px;
}

.menu-desktop {
  display: none;
  gap: 20px;
}
.menu-desktop a {
  font-size: 0.95rem;
  color: var(--text);
}
.menu-desktop a:hover {
  color: var(--brand);
}

/* Burger (móvil) */
.burger {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

/* Drawer móvil */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(1px);
  z-index: 100;
}
.drawer {
  position: fixed;
  inset: 0 30% 0 0;
  max-width: 320px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 24px;
  gap: 6px;
  z-index: 110;
}
.drawer.open {
  transform: translateX(0);
}
.drawer a {
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 1rem;
}
.drawer a:hover {
  background: #f6f7f9;
}
.drawer-close {
  align-self: flex-end;
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

/* ========== Slider (desliz + fundido) ========== */
.slider {
  position: relative;
  overflow: hidden;
  height: 48vh;
  margin: 0;
  padding: 0;
}
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 48vh;
  object-fit: cover; /* “cover” para slider */
  opacity: 0;
  transform: translateX(100%);
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
  will-change: transform, opacity;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* primer slide visible por defecto */
.slides img:first-child {
  transform: translateX(0);
  opacity: 1;
}

/* Dots del slider */
.dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s;
}
.dots button.active {
  width: 22px;
  background: #fff;
}

/* ========== Título de sección (opcional) ========== */
.seccion-titulo {
  text-align: center;
  padding: 40px 16px 20px;
}
.seccion-titulo h2 {
  font-size: 1.8rem;
  color: #5a3b1f;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.seccion-titulo p {
  color: #ffffff;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Tarjetas de productos ========== */
.productos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 30px 15px;
}

/* Tarjeta base */
.card {
  background: #ead6b8; /* Beige cálido de tarjeta */
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }
}

/* Media con marco elegante y foto contenida (no recorta) */
.card .media {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background-color: #f5f0e6;
}
.card .media img {
  width: 92%;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  object-fit: contain;
  background-color: #f5f0e6;
  padding: 4px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Efecto hover dorado */
.card:hover .media img {
  border-color: #d1b480; /* dorado suave */
  box-shadow: 0 10px 22px rgba(209, 180, 128, 0.4);
}

/* Texto de la tarjeta */
.card .info {
  text-align: center;
  padding: 12px 16px 18px;
}
.card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #5a3b1f;
  letter-spacing: 1px;
}
.card p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #3f3f3f;
  line-height: 1.5;
}

/* ========== Breakpoints ========== */
@media (min-width: 768px) {
  .nav {
    height: 64px;
  }
  .menu-desktop {
    display: flex;
  }
  .burger {
    display: none;
  }
  .drawer,
  .overlay {
    display: none !important;
  }
  .slider,
  .slides img {
    height: 60vh;
  }
  .productos {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
  .nav {
    height: 80px;
    justify-content: space-between;
  }

  .slider,
  .slides img {
    height: 70vh;
  }
  .productos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Accesibilidad: ocultar solo visualmente */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.info-comercial {
  background: beige; /* mismo fondo del sitio */
  border-top: 1px solid #23232a;
  border-bottom: 1px solid #23232a;
  padding: 16px 0 20px;
}
.info-comercial .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: blanchedalmond;
  border: 1px solid #23232a;
  border-radius: 14px;
  padding: 12px 14px;
  color: #000000;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.info-item:hover {
  transform: translateY(-1px);
  border-color: #2b2b33;
}

.info-item svg {
  flex: 0 0 auto;
  opacity: 0.9;
}

.info-item .muted {
  color: #a7a7ad;
  display: block;
  font-size: 0.95rem;
}

.info-item .social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mapa-card {
  margin-top: 14px;
  background: #16161a;
  border: 1px solid #23232a;
  border-radius: 16px;
  overflow: hidden;
}

.mapa-card iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

@media (min-width: 900px) {
  .mapa-card iframe {
    height: 380px;
  }
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.circle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

.circle:hover {
  transform: scale(1.1);
  opacity: 1;
}

.insta {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.face {
  background: #1877f2;
}

.tiktok {
  background: #000;
}

.info-item strong + .muted {
  color: #000000; /* amarillo suave pero potente */
  font-weight: 600;
}

/* separa el cajón del slider */
.info-comercial { 
  margin-top: 32px;      /* espacio entre el slider y la info */
  padding-top: 20px;     /* aire interno arriba */
  border-top: 1px solid #23232a;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 900px){
  .info-comercial { 
    margin-top: 48px;    /* un poco más de aire en pantallas grandes */
    padding-top: 32px; /* desktop */
  }
}

.titulo-bienvenida {
  display: block;                /* ocupa todo el ancho */
  text-align: center;            /* centra el texto */
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;                   /* o tu color personalizado */
  margin: 24px auto 16px;
  position: relative;
}
.titulo-bienvenida::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: rgb(0, 0, 0);
  margin: 6px auto 0;            /* centra la línea horizontal */
  border-radius: 2px;
}

.btn-inicio {
  display: block;               /* Hace que se pueda centrar */
  margin: 50px auto 80px auto;  /* ↑ más espacio arriba y abajo ↓ */
  padding: 12px 28px;
  background: #b80000;
  color: #ffffff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;           /* Asegura texto centrado */
  width: fit-content;           /* El botón se ajusta al texto */
  transition: 0.3s ease;
}

.btn-inicio:hover {
  background: #8e0000;
  transform: translateY(-2px);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;   /* Centra horizontalmente */
  text-align: center;    /* Por si acaso */
  line-height: 1.1;
}



