@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-primary: #E8A898; /* Rosado palo */
  --color-secondary: #2C1810; /* Marrón oscuro */
  --color-accent: #4A90D9; /* Azul mariposa */
  --color-bg: #FDF8F5; /* Blanco crema */
  --color-white: #ffffff;
  
  --font-title: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 8px 24px rgba(44, 24, 16, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 5%;
}

.nav-logo img {
  height: 40px;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.navbar.scrolled .nav-links li a {
  color: var(--color-secondary);
}

.nav-links li a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}
.navbar.scrolled .menu-toggle {
  color: var(--color-secondary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.4;
  z-index: -1;
}

.hero-content {
  z-index: 1;
  color: var(--color-white);
  padding: 0 20px;
  animation: fadeIn 1.5s ease;
}

.hero-logo {
  max-width: 300px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  border: 2px solid var(--color-secondary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-secondary);
  background-color: var(--color-white);
  border-color: var(--color-white);
}

/* =========================================
   COLECCIÓN (MODELOS)
   ========================================= */
.section-padding {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 1rem auto 0;
}

.modelos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.card-modelo {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.card-modelo.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-modelo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.card-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-modelo:hover .card-img {
  transform: scale(1.05);
}

.badge-nuevo {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
  animation: pulseBadge 2s infinite;
}

.card-info {
  padding: 1.5rem;
  text-align: center;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-prices {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

.price-item span {
  display: block;
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 1.2rem;
}

/* LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
#lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox-overlay.active #lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.2s;
}
.lightbox-close:hover {
  transform: scale(1.1);
}

.btn-card {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
}
.btn-card:hover {
  background-color: #d18d7c;
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 24, 16, 0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--color-bg);
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: row;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--color-secondary);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.modal-gallery {
  flex: 1;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 15px 0 0 15px;
}

.main-image-container {
  width: 100%;
  height: 350px;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}
.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumb-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.thumb-img:hover, .thumb-img.active {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.color-name-display {
  text-align: center;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 10px;
  min-height: 24px;
}

.modal-form {
  flex: 1;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-title);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 168, 152, 0.2);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* =========================================
   COMO PEDIR
   ========================================= */
.pasos-container {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 2rem;
}
.paso-box {
  flex: 1;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.paso-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}
.paso-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.paso-box h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* =========================================
   FOOTER & FLOATING WHATSAPP
   ========================================= */
footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
  padding: 3rem 5%;
}
footer img {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: pulseGreen 2s infinite;
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 1024px) {
  .modelos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .modelos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition);
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links li a {
    color: var(--color-secondary);
    font-size: 1.2rem;
  }
  
  .modal-overlay {
    align-items: flex-start;
    padding: 0;
  }
  
  .modal-content {
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    width: 100%;
    border-radius: 0;
    margin: 0;
  }
  .modal-gallery {
    border-radius: 0;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }
  .modal-form {
    padding: 1.5rem 1.5rem 3rem 1.5rem;
  }
  .main-image-container {
    height: 250px;
  }
  
  .pasos-container {
    flex-direction: column;
  }
  
  footer {
    padding-bottom: 6rem;
  }
}

/* =========================================
   CART SIDEBAR & BUTTON
   ========================================= */
.cart-floating-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: var(--color-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1001;
  cursor: pointer;
  transition: var(--transition);
}
.cart-floating-btn:hover {
  transform: scale(1.1);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--color-secondary);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2001;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}
.cart-overlay.active {
  visibility: visible;
  opacity: 1;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: auto;
  background: white;
  z-index: 2002;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
}
.cart-sidebar.active {
  right: 0;
}
.cart-header {
  padding: 1.5rem;
  background: var(--color-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}
.cart-header h3 {
  margin: 0;
  color: var(--color-secondary);
}
.cart-close {
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  position: relative;
}
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item-details {
  flex: 1;
}
.cart-item-details h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}
.cart-item-details p {
  margin: 0 0 5px 0;
  font-size: 0.85rem;
  color: #666;
}
.cart-item-price {
  font-weight: bold;
  color: var(--color-primary);
}
.cart-item-remove {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: #d9534f;
  font-size: 1.5rem;
  cursor: pointer;
}
.cart-footer {
  padding: 1.5rem;
  background: var(--color-bg);
  border-top: 1px solid #ddd;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
