:root {
  --color-primary: #6e0e0a; /* Marrón vino del logo */
  --color-secondary: #f28c28; /* Naranja del logo */
  --color-accent: #fff8f5; /* Fondo claro cálido */
  --color-gold: #cfae70; /* Dorado suave opcional */
  --color-dark: #2b2b2b; /* Texto principal */
  --color-mute: #f5f5f7; /* Secciones neutras */
  --color-white: #ffffff;

  --max-w: 1100px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--color-dark);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Sans", sans-serif;
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  margin: 0 0 0.5rem 0;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
/* Utilidades */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  opacity: 0.95;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand .name {
  font-weight: 800;
  letter-spacing: 0.3px;
}
nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}
nav a.active,
nav a:hover {
  background: var(--color-accent);
}
.hamb {
  display: none;
}

/* Hero */
.hero {
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, var(--color-accent), #fff);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      800px 400px at 10% 20%,
      rgba(239, 183, 198, 0.35),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at 90% 30%,
      rgba(122, 62, 101, 0.1),
      transparent 60%
    );
}
.hero-inner {
  display: flex;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 0;
}

.hero-inner > div {
  flex: 1;
}
.hero-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain; /* para que nunca se deforme */
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}
.hero p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  opacity: 0.9;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.hero-img {
  justify-self: end;
  filter: drop-shadow(0 12px 32px rgba(122, 62, 101, 0.2));
}
.hero-img .mock {
  width: 420px;
  height: 420px;
  border-radius: 24px;
  background: #fff;
  border: 6px solid var(--color-secondary);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-img .mock::after {
  content: "Navani";
  position: absolute;
  inset: auto auto 16px 16px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.15;
  font-size: 3rem;
}

/* Sobre nosotros */
section {
  padding: 4rem 0;
}
.section-head {
  margin-bottom: 1.25rem;
}
.section-kicker {
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.about-card {
  background: var(--color-mute);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* Productos */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}
.filters button {
  border: 1.5px solid #ddd;
  background: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.filters button.active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  display: grid;
  place-items: center;
}
.card-body {
  padding: 1rem;
}
.card h3 {
  font-size: 1.05rem;
}
.card .meta {
  font-size: 0.9rem;
  opacity: 0.8;
}
.card .price {
  margin-top: 0.5rem;
  font-weight: 800;
  color: var(--color-primary);
}
.card .actions {
  margin-top: auto;
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
}

/* Marcas */
.brands {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.brand-pill {
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Contacto */
form {
  display: grid;
  gap: 0.9rem;
  max-width: 640px;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-weight: 600;
}
.field input,
.field textarea {
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fff;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-secondary);
  border-color: transparent;
}
.hint {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Footer */
footer {
  background: var(--color-dark);
  color: #eee;
  padding: 2.5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}
.footer-note {
  opacity: 0.8;
}
.socials {
  display: flex;
  gap: 15px; /* espacio entre los íconos */
  justify-content: flex-start; /* por defecto alineados a la izquierda */
  margin-top: 1rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #3a3a3a;
}
.socials a:hover {
  background: #4a4a4a;
}
.subfooter {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Flotantes */
.whats-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #000;
  color: #fff;
  opacity: 0.75;
  cursor: pointer;
}
.to-top[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    flex-direction: column; /* apila texto y carrusel */
    text-align: center; /* centra texto */
  }

  .hero h1 {
    font-size: 1.6rem; /* tamaño ajustado para móvil */
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    margin: 1rem 0;
  }

  .hero-img .mock {
    width: 100%;
    height: 280px;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* centra botones */
  }

  .hero-img {
    width: 100%;
    max-width: 100%; /* aseguramos que no se pase */
    margin: 0 auto;
    text-align: center; /* centra contenido */
  }

  .carrusel {
    width: 100%;        /* 🔑 ocupa todo el ancho disponible */
    height: auto;       /* 🔑 que se ajuste al contenido */
    aspect-ratio: 3/4;  /* mantiene proporción */
  }

  .carrusel img {
    position: relative; /* 🔑 que fluya dentro */
    width: 100%;
    height: auto;
    object-fit: contain; /* para que no se corte nada */
  }


  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  nav ul {
    display: none;
  }
  .hamb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #ddd;
  }
  nav.open ul {
    display: flex;
    position: absolute;
    top: 70px;
    right: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    flex-direction: column;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }
  nav.open ul a {
    padding: 0.6rem 0.9rem;
  }
  .grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .info-grid {
    grid-template-columns: 1fr; /* info-cards en una columna */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-floating {
    right: 10px; /* ajusta flotantes */
    bottom: 10px;
  }

  .socials {
    justify-content: center; /* en pantallas pequeñas, al centro */
  }
}

/* Accesibilidad y estados */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* Carrusel o Slider */
.carrusel {
  position: relative;
  width: 600px;
  max-width: 100%;   /* 🔑 nunca más ancho que el contenedor */
  height: 550px;
  aspect-ratio: 3 / 4;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carrusel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 4s ease-in-out;
}


/* Imagen activa: aparece con fade */
.carrusel img.active {
  opacity: 1;
  z-index: 2;
}

/* Imagen anterior: se desvanece */
.carrusel img.prev {
  opacity: 0;
  z-index: 1;
}

/* Barra de Navegación */
#inicio {
  scroll-margin-top: 80px; /* ajusta el valor al alto de tu header */
}

#productos {
  scroll-margin-top: 80px; /* ajusta el valor al alto de tu header */
}

#marcas {
  scroll-margin-top: 80px; /* ajusta el valor al alto de tu header */
}

#contacto {
  scroll-margin-top: 80px; /* ajusta el valor al alto de tu header */
}

#ubicanos {
  scroll-margin-top: 80px; /* ajusta el valor al alto de tu header */
}

/* Display de las marcas */
.marcas-slider {
  overflow: hidden;
  background: lab(255, 255, 255, 0.75);
  padding: 2rem 0;
}

.marcas-track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.marcas {
  flex: 0 0 auto;
  padding: 0 2rem; /* espacio entre logos */
}

.marcas img {
  height: 120px;
  width: 120px; /* 🔑 fuerza a que sea cuadrada */
  object-fit: contain; /* mantiene el logo dentro sin deformar */
  border-radius: 50%; /* redondea al máximo → círculo */
  background: #fff; /* opcional, útil si el logo es transparente */
  padding: 5px; /* opcional, da aire dentro del círculo */
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.3s ease;
}

.marcas img:hover {
  filter: none;
}

/* Animación infinita */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== Botones Flotantes Izquierda ===== */
.social-floating {
  position: fixed;
  bottom: 20px;
  right: 20px; /* 👈 cambiamos de right a left */
  display: flex;
  flex-direction: column;
  gap: 12px; /* separación entre botones */
  z-index: 999;
}

.btn-floating {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366; /* por defecto WhatsApp */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.btn-floating img {
  width: 28px;
  height: 28px;
  filter: invert(100%); /* para que el ícono se vea blanco */
}

.btn-floating:hover {
  transform: scale(1.1);
}

/* Colores específicos */
.btn-floating.fb {
  background: #1877f2;
}
.btn-floating.ig {
  background: #e1306c;
}
.btn-floating.wa {
  background: #25d366;
}

.info-final {
  background: #f9f9f9; /* gris claro para diferenciar */
  padding: 60px 20px;
  text-align: center;
}

.info-final h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 40px;
  color: #333;
  font-weight: bold;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.info-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.info-card i {
  font-size: 2rem;
  color: #ff4081; /* color acento de tu proyecto */
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

.info-card p {
  font-size: 0.95rem;
  color: #555;
}
