:root {
  --primary: #c5a47e; /* Beige dorado del logo */
  --background: #fffaf5;
  --text: #4b3a2e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo {
  height: 60px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a:hover {
  color: var(--primary);
}

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: none;
  }

  nav ul.open {
    display: flex;
  }

  nav li {
    padding: 0.5rem 0;
  }
}

/* Hero */
.hero {
  background: url('./img/banners/banner2.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  min-height: 480px;
  padding: 3rem 2rem;
  position: relative;
}

.hero::before {
  content: "";
  background: rgba(0, 0, 0, 0.35);
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.btn-whatsapp {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-whatsapp:hover {
  background: #b38f68;
}

.btn-secondary {
  background: var(--text);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
  margin-top: 2rem;
  display: inline-block;
}

.btn-secondary:hover {
  background: #5a4a3e;
}

/* Tablet */
@media (max-width: 1200px) {
  .hero {
    background-image: url('./img/hero-tablet.jpg');
    min-height: 500px;
    padding: 4.5rem 1.5rem;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .hero {
    background-image: url('./img/hero-mobile.jpg');
    background-position: center top;
    min-height: 420px;
    padding: 3rem 1rem;
  }
}

/* Intro */
.intro {
  background: linear-gradient(to right, var(--primary), #d4b08a);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.intro-content {
  max-width: 700px;
  margin: 0 auto;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.2rem;
}

/* Productos */
.productos {
  text-align: center;
  padding: 4rem 2rem;
}

.productos-header {
  margin-bottom: 3rem;
}

.productos-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.productos-header p {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.8;
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
}

/* Desktop grid fallback */
@media (min-width: 769px) {
  .carousel-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transform: none;
  }

  .slide {
    min-width: auto;
    padding: 0;
  }

  .prev, .next {
    display: none;
  }
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.producto {
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.producto-img-principal {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.producto-img-principal:hover {
  transform: scale(1.05);
}

.producto h3 {
  color: var(--primary);
  margin: 1rem 0 0.5rem 0;
}

.producto p {
  color: var(--text);
}

/* Servicios */
.servicios {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(197, 164, 126, 0.08) 0%, rgba(197, 164, 126, 0.03) 100%);
}

.servicios h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.servicios > p:first-of-type {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 3rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.servicio {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.servicio-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.servicio h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.servicio p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
}

.servicios-cta {
  font-size: 0.95rem;
  color: var(--text);
}

.link-whatsapp {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s;
}

.link-whatsapp:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Nosotros */
.nosotros {
  background: #fdf7f1;
  padding: 5rem 2rem;
  text-align: center;
}

.nosotros-content {
  max-width: 800px;
  margin: 0 auto;
}

.nosotros-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.nosotros-content > p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.ubicacion {
  font-size: 0.95rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e6d9cc;
  color: var(--primary);
  font-weight: 500;
}

/* Valores */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.valor {
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.valor h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Contacto */
.contacto {
  text-align: center;
  padding: 4rem 2rem;
}

.contacto h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contacto p {
  margin-bottom: 2.5rem;
  font-size: 1rem;
  color: var(--text);
  opacity: 0.85;
}

.social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}

.social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.social a.whatsapp-contact {
  background-color: #25d366;
  width: auto;
  padding: 0 1.2rem;
}

.social a.facebook-icon {
  background-color: var(--primary);
}

.social a.facebook-icon img {
  filter: none;
}

.social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
  }
}

/* Footer */
footer {
  background: #fff;
  text-align: center;
  padding: 1rem;
  color: var(--text);
  border-top: 1px solid #e6d9cc;
}
