/* ============================================================
   LAS LOCAS SHOWROOM — style.css
   Paleta: cream, rose, burgundy, gold
   Tipografía: Playfair Display + Nunito
   ============================================================ */

/* ---- VARIABLES ---- */
:root {
  --cream:    #FBF5ED;
  --cream2:   #F4EBD8;
  --rose:     #C4546A;
  --rose-light: #ECC8D0;
  --burgundy: #7D2B3E;
  --gold:     #C9973A;
  --dark:     #1C1212;
  --gray:     #6B5D5D;
  --white:    #FFFFFF;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Nunito', sans-serif;

  --nav-h: 72px;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(28,18,18,.10);
  --shadow-card: 0 4px 20px rgba(196,84,106,.12);
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- REUSABLES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-rose { background: var(--burgundy); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--rose-light);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-tag.light {
  background: rgba(255,255,255,.15);
  color: var(--cream);
}
.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
}
.section-header h2 em { color: var(--gold); font-style: italic; }
.section-dark .section-header h2 em { color: var(--rose-light); }
.section-rose .section-header h2 em { color: var(--gold); }
.section-header p {
  margin-top: 14px;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.6;
}
.section-rose .section-header p { color: rgba(255,255,255,.8); }

/* Mini logo decorativo en cada section-header */
.section-header::before {
  content: '';
  display: block;
  width: 72px;
  height: 72px;
  background: url('../img/logo.png') center/contain no-repeat;
  margin: 0 auto 10px;
  opacity: .25;
  /* Sobre fondo claro: logo negro */
  filter: brightness(0);
}
/* Sobre fondos oscuros: logo blanco */
.section-dark .section-header::before,
.section-rose .section-header::before {
  filter: brightness(0) invert(1);
  opacity: .22;
}

/* Marca de agua sutil en fondo de cada sección */
.section,
.section-dark,
.section-rose {
  position: relative;
}
.section::after,
.section-dark::after,
.section-rose::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 260px;
  height: 260px;
  background: url('../img/logo.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
  /* Sobre fondo claro: negro muy tenue */
  filter: brightness(0);
  opacity: .05;
}
.section-dark::after,
.section-rose::after {
  /* Sobre fondo oscuro: blanco muy tenue */
  filter: brightness(0) invert(1);
  opacity: .07;
}
/* El contenido va sobre la marca de agua */
.section > .container,
.section-dark > .container,
.section-rose > .container,
.section > .nosotros-grid {
  position: relative;
  z-index: 1;
}

.btn-main {
  display: inline-block;
  background: var(--rose);
  color: var(--white);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  padding: 14px 34px;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(196,84,106,.3);
}
.btn-main:hover { background: var(--burgundy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(125,43,62,.35); }
.btn-big { font-size: 1.1rem; padding: 18px 48px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(251,245,237,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,84,106,.1);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 60px;
  width: auto;
  /* Fondo cream → logo negro con sombra rosa para que destaque */
  filter: brightness(0) saturate(100%)
          drop-shadow(0 2px 6px rgba(196,84,106,.35));
  transition: transform var(--transition), filter var(--transition);
}
.nav-logo:hover img {
  transform: scale(1.05);
  filter: brightness(0) saturate(100%)
          drop-shadow(0 4px 12px rgba(196,84,106,.55));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: .02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--rose); }
.nav-links .nav-cta {
  background: var(--rose);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 50px;
  font-size: .85rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-links .nav-cta:hover { background: var(--burgundy); transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO / SLIDER
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height: descuenta la barra del browser */
  min-height: 520px;
  overflow: hidden;
  margin-top: 0;
}

.slider { width: 100%; height: 100%; position: relative; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transition: opacity .9s ease;
  display: flex;
  align-items: center;
}
/* Posición específica por slide para que se vean las personas */
.slide:nth-child(1) { background-position: center 55%; } /* mate2: chicas abajo */
.slide:nth-child(2) { background-position: center 45%; } /* mateando: grupo centro */
.slide.active { opacity: 1; z-index: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,18,18,.72) 0%,
    rgba(125,43,62,.55) 50%,
    rgba(28,18,18,.25) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 10vw;
  color: var(--white);
  max-width: 680px;
  animation: slideUp .9s ease both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide.active .slide-content { animation: slideUp .9s ease both; }

.slide-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.slide-content h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.slide-content h1 em {
  color: var(--gold);
  font-style: italic;
}
.slide-content p {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  line-height: 1.6;
  opacity: .9;
  margin-bottom: 32px;
}

.btn-hero {
  display: inline-block;
  background: var(--white);
  color: var(--burgundy);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .06em;
  padding: 14px 36px;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-hero:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }

/* slider controls */
.slider-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.dot.active { background: var(--gold); transform: scale(1.3); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: var(--rose); border-color: var(--rose); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* ============================================================
   BADGES
   ============================================================ */
.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--rose);
  color: var(--white);
}
.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.badge:last-child { border-right: none; }
.badge-icon { font-size: 1.8rem; flex-shrink: 0; }
.badge-text { font-size: .88rem; line-height: 1.4; }
.badge-text strong { display: block; font-weight: 800; margin-bottom: 2px; }

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(196,84,106,.1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--rose-light);
}
.cat-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}
.cat-card h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.cat-card p { font-size: .9rem; color: var(--gray); line-height: 1.5; }

/* ============================================================
   PRODUCTOS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #2A1F1F;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

.product-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(125,43,62,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }

.btn-product {
  background: var(--white);
  color: var(--burgundy);
  font-weight: 800;
  font-size: .85rem;
  padding: 11px 24px;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
}
.btn-product:hover { background: var(--gold); color: var(--dark); }

.product-info {
  padding: 18px 20px 22px;
}
.product-cat {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.product-info h4 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 5px;
}
.product-info p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.4; }

.products-cta {
  margin-top: 48px;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
}
.products-cta p { margin-bottom: 18px; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros-text .section-tag { margin-bottom: 14px; }
.nosotros-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 22px;
}
.nosotros-text h2 em { color: var(--rose); font-style: italic; }
.nosotros-text p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 14px;
}
.nosotros-text p strong { color: var(--dark); }

.nosotros-data {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dato {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.dato-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.dato strong { display: block; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.dato p { font-size: .9rem; color: var(--gray); line-height: 1.5; }
.dato a { color: var(--rose); font-weight: 700; }
.dato a:hover { text-decoration: underline; }

.nosotros-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(196,84,106,.18);
}
.nosotros-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.nosotros-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(28,18,18,.15);
}
.nosotros-badge span { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.nosotros-badge p { font-size: .78rem; font-weight: 700; color: var(--burgundy); line-height: 1.3; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto-inner { text-align: center; }

.contacto-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 40px 0 48px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 28px 32px;
  min-width: 190px;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}
.contact-card:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }
.contact-icon { font-size: 2rem; margin-bottom: 4px; }
.contact-card strong { font-weight: 800; font-size: 1rem; color: var(--gold); }
.contact-card span { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #120A0A;
  color: rgba(255,255,255,.6);
  padding: 40px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.footer-logo img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1) opacity(.85);
  transition: filter var(--transition), transform var(--transition);
}
.footer-logo img:hover {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.04);
}
.footer-info { text-align: center; }
.footer-info p { font-size: .83rem; line-height: 1.7; }
.footer-info a { color: var(--rose-light); }
.footer-info a:hover { color: var(--white); }
.footer-credit { text-align: right; font-size: .78rem; line-height: 1.6; }
.footer-credit a { color: var(--gold); font-weight: 700; }
.footer-credit a:hover { text-decoration: underline; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 2.5s infinite;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.55);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.75), 0 0 0 8px rgba(37,211,102,.12); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid { grid-template-columns: 1fr; gap: 40px; }
  .nosotros-img { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 16px;
    border-top: 1px solid rgba(196,84,106,.15);
    box-shadow: 0 12px 32px rgba(28,18,18,.12);
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }

  .badges { grid-template-columns: repeat(2, 1fr); }
  .badge { border-bottom: 1px solid rgba(255,255,255,.2); }
  .badge:nth-child(even) { border-right: none; }

  .cats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cat-card { padding: 24px 18px; }

  .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .contacto-cards { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 320px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto; }
  .footer-credit { text-align: center; }

  .slider-arrow { display: none; }

  .slide-content { padding: 0 24px; }

  /* Hero en móvil: altura fija para evitar corte */
  .hero {
    height: 70vh;
    height: 70dvh;
    min-height: 480px;
  }

  /* En móvil las imágenes muestran la zona de las personas */
  .slide:nth-child(1) { background-position: center 65%; }
  .slide:nth-child(2) { background-position: center 50%; }

  /* Texto del slider más compacto en móvil */
  .slide-content h1 { font-size: 2.2rem; margin-bottom: 12px; }
  .slide-content p  { font-size: .9rem; margin-bottom: 22px; }
  .slide-tag        { font-size: .7rem; margin-bottom: 12px; }
  .btn-hero         { padding: 11px 26px; font-size: .88rem; }
}

@media (max-width: 480px) {
  .badges { grid-template-columns: 1fr; }
  .badge { border-right: none; }
  .cats-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }

  .hero { height: 65vh; height: 65dvh; min-height: 420px; }
  .slide:nth-child(1) { background-position: center 70%; }
}
