/* ============================================================
   Dale tu Sentido – CSS Limpio y Responsivo de Verdad
   ============================================================ */

/* ---- RESET & VARIABLES ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e0417e;        /* Color rosa/fucsia de marca floral */
  --primary-dark: #c23068;
  --primary-light: #fff4e5;
  --dark: #1a1a2e;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --bg: #fafafa;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 15px rgba(0,0,0,0.08);
  --font-body: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-links { display: flex; gap: 16px; }
.topbar-links a { color: #aaa; transition: color .2s; }
.topbar-links a:hover { color: var(--primary); }

/* ---- HEADER ---- */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.8rem; }
.logo-main {
  display: block;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--dark);
}
.logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* MENÚ DESKTOP */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav-item > a:hover { background: var(--primary-light); color: var(--primary); }

/* ACCIONES */
.header-actions { display: flex; align-items: center; gap: 16px; }
.search-box {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
}
.search-box input {
  border: none; outline: none; padding: 6px 12px; font-size: 0.85rem; width: 160px;
}
.search-box button {
  background: var(--primary); border: none; padding: 6px 12px; cursor: pointer;
}
.icon-btn {
  display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); position: relative;
}
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.cart-btn { display: flex; }
.cart-count {
  position: absolute; top: -4px; right: -6px; background: var(--primary); color: white; border-radius: 50%; width: 16px; height: 16px; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* MENÚ MÓVIL */
.mobile-menu {
  display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--border); padding: 12px 24px;
}
.mobile-menu a { padding: 10px 0; font-size: 0.95rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu.active { display: flex !important; }

/* ---- HERO SLIDER ---- */
.hero { position: relative; overflow: hidden; min-height: 450px; background: #eee; }
.hero-slide {
  display: none; align-items: center; padding: 48px 8vw; min-height: 450px;
  background-size: cover; background-position: center;
  animation: fadeSlide .5s ease;
}
.hero-slide.active { display: flex; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.hero-content { max-width: 500px; color: white; }
.hero-tag {
  display: inline-block; background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 40px; margin-bottom: 16px;
}
.hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1rem; margin-bottom: 20px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.btn-primary {
  background: white; color: var(--dark); font-weight: 700; padding: 10px 24px; border-radius: 40px; transition: all .2s; display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 1.2rem;
}
.hero-arrow:hover { background: var(--primary); }
.hero-arrow.left { left: 16px; }
.hero-arrow.right { right: 16px; }

/* ---- SECCIÓN NUEVAS TARJETAS RESPONSIVAS ---- */
.slider-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 24px;
  max-width: 1300px;
  margin: 0 auto;
  justify-content: center;
}
.slide-container {
  flex: 0 0 100%;
  max-width: 320px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-content {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.name { font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.description { font-size: 0.9rem; color: var(--text-muted); }
.button {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: auto;
  transition: background 0.3s;
  text-align: center;
}
.button:hover { background-color: var(--primary-dark); }

/* ---- FOOTER ---- */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom .payments { display: flex; gap: 12px; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed; bottom: 24px; left: 24px; background: #25d366; color: white; width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 999; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

/* En Tablets (Muestra 2 tarjetas por fila) */
@media (min-width: 600px) {
  .slide-container { flex: 0 0 calc(50% - 12px); }
}

/* En Desktops (Muestra 3 tarjetas por fila) */
@media (min-width: 950px) {
  .slide-container { flex: 0 0 calc(33.333% - 16px); }
}

/* Cambios globales para pantallas móviles */
@media (max-width: 850px) {
  .main-nav, .search-box, .header-actions .icon-btn:not(.cart-btn) { display: none !important; }
  .hamburger { display: block; }
  .topbar { flex-direction: column; text-align: center; padding: 8px; }
  .topbar-links { justify-content: center; font-size: 0.75rem; }
}

/* Caso crítico: Celulares muy pequeños (iPhone SE / 320px) */
@media (max-width: 360px) {
  .logo-main { font-size: 0.95rem; }
  .logo-icon { font-size: 1.4rem; }
  .header-inner { padding: 0 12px; }
  .hero-content h1 { font-size: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* ============================================================
   slide tarjetas
   ============================================================ */

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1000px; /* Ajusta según el ancho de tu diseño */
  margin: 0 auto;
}

.slider-container {
  overflow: hidden; /* Oculta las tarjetas que quedan fuera de vista */
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 20px; /* Espacio entre tarjetas */
  transition: transform 0.4s ease-in-out; /* Hace el movimiento suave */
}

.card {
  min-width: 300px; /* Ancho de cada tarjeta */
  /* Tu estilo actual de la tarjeta va aquí */
}

/* Estilos para los botones */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: -50px; } /* Saca el botón un poco a la izquierda */
.next-btn { right: -50px; } /* Saca el botón un poco a la derecha */
#contactanos{
   text-align: center;
}