/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #A7D8FF;
  --pink: #FFB6C1;
  --white: #FFFFFF;
  --cream: #FFF5E6;
  --dark: #2D2D2D;
  --gray: #6B6B6B;
  --light-gray: #F8F8F8;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font: 'Nunito', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  border-radius: 2px;
  margin: 0 auto 15px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn i {
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #87CEEB);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(167, 216, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(167, 216, 255, 0.6);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
}

.logo i {
  color: var(--pink);
  font-size: 1.6rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--gray);
}

.nav-link:hover {
  background: var(--cream);
  color: var(--dark);
}

.cart-icon {
  position: relative;
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--dark);
  transition: var(--transition);
}

.cart-icon:hover {
  color: var(--pink);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: var(--pink);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.show {
  transform: scale(1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('https://images.unsplash.com/photo-1497034825429-c343d7c6a68f?w=1600&q=80') center/cover no-repeat;
  padding-top: 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167, 216, 255, 0.85), rgba(255, 182, 193, 0.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btns .btn-primary {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-btns .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ===== HISTORIA ===== */
.historia-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.historia-text p {
  margin-bottom: 18px;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

.historia-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.historia-img:hover img {
  transform: scale(1.03);
}

/* ===== MENÚ ===== */
.section-menu {
  background: var(--cream);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.producto-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.producto-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.producto-body {
  padding: 20px;
}

.producto-nombre {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.producto-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.producto-stars i {
  color: #FFB800;
}

.producto-stars span {
  color: var(--gray);
  font-size: 0.8rem;
  margin-left: 4px;
  font-weight: 600;
}

.producto-desc {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.producto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.producto-precio {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
}

.btn-agregar {
  background: linear-gradient(135deg, var(--blue), #87CEEB);
  color: var(--dark);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-agregar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(167, 216, 255, 0.5);
}

.btn-agregar:active {
  transform: scale(0.95);
}

/* ===== SERVICIOS ===== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

.servicio-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.servicio-icon {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: var(--white);
}

.servicio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.servicio-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== UBICACIÓN ===== */
.section-ubicacion {
  background: var(--light-gray);
}

.ubicacion-content {
  text-align: center;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ===== CONTACTO ===== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.contacto-item i {
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: var(--white);
  flex-shrink: 0;
}

.contacto-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.contacto-item a {
  color: var(--gray);
  font-size: 0.95rem;
  transition: var(--transition);
}

.contacto-item a:hover {
  color: var(--dark);
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 15px 18px;
  border: 2px solid #E8E8E8;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(167, 216, 255, 0.15);
}

/* ===== CALIFÍCANOS ===== */
.section-calificar {
  background: var(--cream);
  text-align: center;
}

.section-calificar .btn {
  margin-top: 10px;
}

.section-calificar .btn-primary {
  background: linear-gradient(135deg, #FFB800, #FF9500);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

.section-calificar .btn-primary:hover {
  box-shadow: 0 6px 25px rgba(255, 184, 0, 0.6);
}

/* ===== CARRITO MODAL ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.cart-modal.active {
  right: 0;
}

.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid #F0F0F0;
}

.cart-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-modal-header h3 i {
  color: var(--pink);
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cart-close:hover {
  background: #F0F0F0;
  color: var(--dark);
}

.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 25px;
}

.cart-empty {
  text-align: center;
  padding: 50px 0;
  color: var(--gray);
}

.cart-empty i {
  font-size: 3rem;
  color: #DDD;
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #F5F5F5;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-price {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 2px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--blue);
}

.qty-num {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #CCC;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  padding: 5px;
}

.cart-item-remove:hover {
  color: #FF6B6B;
}

.cart-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #F0F0F0;
  background: var(--white);
}

.delivery-option {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F5F5F5;
}

.delivery-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.delivery-toggle input {
  display: none;
}

.delivery-slider {
  width: 44px;
  height: 24px;
  background: #DDD;
  border-radius: 12px;
  position: relative;
  transition: 0.3s;
  flex-shrink: 0;
}

.delivery-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

.delivery-toggle input:checked + .delivery-slider {
  background: #25D366;
}

.delivery-toggle input:checked + .delivery-slider::after {
  left: 23px;
}

.delivery-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray);
}

.delivery-info {
  display: none;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 8px;
  padding-left: 4px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cart-modal-footer .btn-whatsapp {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand i {
  color: var(--pink);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--pink);
  color: var(--dark);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .historia-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .historia-img img {
    height: 300px;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
  }
  .nav-menu.active {
    transform: translateY(0);
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1rem;
  }
  .cart-icon {
    text-align: center;
    padding: 14px;
    width: 100%;
  }
  .section {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .productos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .producto-img {
    height: 160px;
  }
  .producto-body {
    padding: 15px;
  }
  .servicios-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .servicio-card {
    padding: 25px 15px;
  }
  .map-container iframe {
    height: 280px;
  }
  .cart-modal {
    max-width: 100%;
    right: -100%;
  }
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .hero {
    min-height: 90vh;
  }
  .productos-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }
  .servicios-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
