/* css/styles.css */

/* Variables */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --light: #f8fafc;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  background-color: var(--light);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  color: var(--gray);
}

.lead {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 32px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 45px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 45px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-ghost {
  background-color: transparent;
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 45px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  transition: all 0.3s ease;
  border: 2px solid var(--light-gray);
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-ghost:hover {
  background-color: var(--light);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
 
  margin-top: -5px;
  border: 2.4px solid var(--light-gray);
}

.navbar.scrolled {
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  transform-origin: center;
}

.nav-links {
  display: flex;
  gap: 32px;
}

/* Responsive utilities */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.cart-ws {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-container {
  position: relative;
}

.cart-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Dropdown */
.cart-dropdown {
  position: fixed;
  top: 70px;
  right: -400px;
  width: 380px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  z-index: 1001;
  transition: right 0.3s ease;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

.cart-dropdown.active {
  right: 20px;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-cart:hover {
  background-color: var(--light);
}

.cart-items {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.empty-cart {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  margin: 40px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--light-gray);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.cart-item-info p {
  margin: 0 0 8px 0;
  font-size: 0.875rem;
  color: var(--gray);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  background: var(--light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.cart-item-total {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-total p {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.remove-item {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.remove-item:hover {
  color: #ef4444;
  background-color: #fee2e2;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--light-gray);
}

.cart-total {
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--primary);
  color: var(--white);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-notification.show {
  transform: translateX(0);
}

/* Footer */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 60px 0 30px;
  font-family: 'Inter', sans-serif;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-info {
  text-align: center;
  max-width: 600px;
}

.footer-info p {
  color: #ccc;
  margin: 0 0 10px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-info p.copyright {
  color: #999;
  font-size: 0.9rem;
  margin-top: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 20px 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #333;
  color: var(--white);
  font-size: 1.5rem;
  transition: all 0.4s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.social-link i {
  position: relative;
  z-index: 2;
}

.social-link:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover i {
  color: var(--black);
}

/* Animaciones suaves */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-content > * {
  animation: fadeInUp 0.6s ease forwards;
}

.footer-logo {
  animation-delay: 0.1s;
  opacity: 0;
}

.footer-info {
  animation-delay: 0.2s;
  opacity: 0;
}

.social-links {
  animation-delay: 0.3s;
  opacity: 0;
}

.footer-info p.copyright {
  animation-delay: 0.4s;
  opacity: 0;
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  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);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 344px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  /* Navbar */
  .navbar {
    padding: 10px 5px;
  }
  
  .brand-name {
    font-size: 1rem;
  }
  
  .logo {
    height: 30px;
  }
  
  /* Botones */
  .btn-primary, .btn-outline, .btn-ghost {
    padding: 10px 20px;
    min-height: 40px;
    font-size: 0.8rem;
  }
  
  /* Footer */
  .site-footer {
    padding: 30px 0 15px;
  }
  
  .footer-logo {
    max-width: 120px;
  }
  
  .footer-info p {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
  
  .footer-info p.copyright {
    font-size: 0.75rem;
    margin-top: 15px;
  }
  
  .social-links {
    gap: 10px;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  /* Botón WhatsApp */
  .whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
  }
  
  /* Carrito */
  .cart-dropdown {
    width: 280px;
    top: 60px;
  }
  
  .cart-header h3 {
    font-size: 1.1rem;
  }
  
  .cart-item {
    padding: 10px 0;
  }
  
  .cart-item-info h4 {
    font-size: 0.9rem;
  }
  
  .cart-item-info p {
    font-size: 0.8rem;
  }
  
  .qty-btn {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  
  .qty-value {
    font-size: 0.8rem;
  }
  
  .cart-item-total p {
    font-size: 0.9rem;
  }
  
  .remove-item {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  
  .cart-footer {
    padding: 15px;
  }
  
  .cart-total {
    margin-bottom: 15px;
    font-size: 1rem;
  }
  
  .checkout-btn {
    padding: 10px;
    min-height: 40px;
    font-size: 0.9rem;
  }
}

/* Estilos para resolución 720x1600 (móviles modernos) */
@media (max-width: 720px) {
  .container {
    width: 92%;
    padding: 0 15px;
  }
  
  /* Navbar */
  .navbar {
    padding: 12px 15px;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  .logo {
    height: 35px;
  }
  
  .nav-links a {
    font-size: 1rem;
    padding: 10px 15px;
  }
  
  /* Botones */
  .btn-primary, .btn-outline, .btn-ghost {
    padding: 12px 25px;
    min-height: 45px;
    font-size: 0.9rem;
  }
  
  /* Secciones */
  .section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Footer */
  .site-footer {
    padding: 40px 0 20px;
  }
  
  .footer-logo {
    max-width: 150px;
  }
  
  .footer-info p {
    font-size: 0.9rem;
  }
  
  .footer-info p.copyright {
    font-size: 0.8rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  /* Botón WhatsApp */
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
  
  /* Carrito */
  .cart-dropdown {
    width: 320px;
    top: 65px;
  }
  
  .cart-header h3 {
    font-size: 1.2rem;
  }
  
  .cart-item-info h4 {
    font-size: 1rem;
  }
  
  .cart-item-info p {
    font-size: 0.9rem;
  }
  
  .cart-item-total p {
    font-size: 1rem;
  }
  
  .checkout-btn {
    padding: 12px;
    min-height: 45px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 5;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links a {
    font-size: 1.5rem;
    padding: 1rem 2rem;
  }
  
  .nav-links .btn-ghost {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .cart-dropdown {
    width: 300px;
    top: 65px;
  }
  
  .cart-dropdown.active {
    right: 10px;
  }
  
  .site-footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    gap: 20px;
  }
  
  .footer-logo {
    max-width: 140px;
  }
  
  .social-links {
    gap: 15px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}