/* Base Styles */
:root {
  /* Nueva paleta de colores */
  --primary-dark: #1a2942; /* Azul marino oscuro (reemplaza el teal) */
  --primary: #b22222; /* Rojo oscuro/burdeos */
  --primary-hover: #8b0000; /* Rojo burdeos más oscuro */
  --primary-light: #f08080; /* Rosa/coral */

  --secondary-dark: #2c3e50; /* Azul oscuro complementario */
  --secondary: #34495e; /* Azul medio complementario */
  --secondary-hover: #2c3e50; /* Azul oscuro hover */

  --accent: #e32636; /* Rojo brillante */

  --black: #000000; /* Negro */
  --gray-dark: #555555; /* Gris oscuro */
  --gray: #888888; /* Gris medio */
  --gray-light: #bbbbbb; /* Gris claro */
  --white: #ffffff; /* Blanco */

  /* Colores de texto */
  --text: #111827;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;

  /* Colores de fondo */
  --bg-dark: var(--primary-dark);
  --bg-light: #f9fafb;

  /* Otros colores */
  --success: #10b981;
  --success-hover: #059669;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #f59e0b;
  --warning-hover: #d97706;
  --info: #3b82f6;
  --info-hover: #2563eb;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;

  /* Bordes y sombras */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 320px; /* Establecer un ancho mínimo para evitar que la web se achique demasiado */
  overflow-x: hidden; /* Evitar scroll horizontal */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.5;
  padding-top: 4rem;
  background-color: var(--white);
  width: 100%;
}

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

ul {
  list-style: none;
}

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

/* Container - Responsive padding */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  min-width: 320px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Container dentro del hero - Sin z-index issues */
.hero-section .container {
  position: relative;
  z-index: 20;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

.section-description {
  color: var(--text-light);
  max-width: 32rem;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--primary);
  margin: 1rem 0 1.5rem;
}

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

.text-center .section-divider {
  margin-left: auto;
  margin-right: auto;
}

.text-center .section-description {
  margin-left: auto;
  margin-right: auto;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--border-radius-full);
  margin-bottom: 1rem;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.badge-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.badge-secondary {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  line-height: 1.5;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(178, 34, 34, 0.2),
              0 2px 4px -1px rgba(178, 34, 34, 0.1);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(178, 34, 34, 0.3),
              0 6px 10px -5px rgba(178, 34, 34, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-light);
}

.btn-outline:hover {
  background-color: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--bg-light);
}

.btn-rounded {
  border-radius: var(--border-radius-full);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* Botones más pequeños en mobile para mejor UX */
@media (max-width: 639px) {
  .btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
}

.btn-full {
  width: 100%;
}

/* Header - Profesional, fondo blanco, textos azul marino, logo centrado */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 5rem;
  background-color: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 2px 12px 0 rgba(26, 41, 66, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s, height 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 16px 0 rgba(26, 41, 66, 0.12);
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Header layout: left (info), center (logo), right (menu) */
.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 2.5rem;
  gap: 1rem;
}

/* Left: Professional info or CTA */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 500;
  opacity: 0.85;
}
.header-left .header-icon {
  color: var(--primary);
  font-size: 1.3rem;
  margin-right: 0.5rem;
}
.header-left .header-cta {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--border-radius-full);
  padding: 0.3rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 0.5rem;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.header-left .header-cta:hover {
  background: linear-gradient(90deg, var(--primary-hover), var(--primary));
}

/* Center: Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-image {
  height: 3.5rem;
  object-fit: contain;
  transition: height 0.3s;
}

.header.scrolled .logo-image {
  height: 2.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.03em;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  transition: font-size 0.3s;
}

.header.scrolled .logo-text {
  font-size: 1.25rem;
}

/* Right: Desktop navigation */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: none;
    border-radius: var(--border-radius-full);
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 8px rgba(26,41,66,0.04);
  }
}

.nav-link {
  font-weight: 600;
  color: var(--primary-dark);
  background: none;
  border: none;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color 0.2s;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  border-radius: var(--border-radius-full);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--bg-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header.scrolled .nav-link {
  color: var(--primary-dark);
}

/* Add subtle hover effect for professional look */
.nav-link {
  box-shadow: 0 1px 4px rgba(26,41,66,0.03);
}
.nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Hamburger menu button - right side */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 2.2rem;
  border-radius: var(--border-radius-full);
  box-shadow: 0 2px 8px rgba(26,41,66,0.07);
  padding: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.header.scrolled .mobile-menu-btn {
  color: var(--primary-dark);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile menu styles */
.mobile-menu {
  padding: 1rem 0;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 1rem;
  position: absolute;
  top: 5rem;
  right: 2.5rem;
  min-width: 220px;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

.header.scrolled .mobile-menu {
  top: 4rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem;
}

.mobile-nav .nav-link {
  color: var(--primary-dark);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  color: var(--primary);
  background: var(--bg-light);
}

.hidden {
  display: none;
}

/* Add underline animation for active nav-link */
.nav-link.active::after {
  width: 100%;
}

/* Subtle shadow for header on scroll for market-ready look */
.header.scrolled {
  box-shadow: 0 6px 24px 0 rgba(26, 41, 66, 0.14);
}

/* Responsive improvements for header */
@media (max-width: 640px) {
  .header-content {
    padding: 0 1rem;
    grid-template-columns: 1fr auto 1fr;
  }
  .logo-text {
    font-size: 1.1rem;
  }
  .logo-image {
    height: 2.2rem;
  }
}

/* Hero Section - Main container */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--black);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 41, 66, 0.9), rgba(26, 41, 66, 0.7));
  z-index: 10;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/placeholder.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 48rem;
  padding: 2rem 0;
  margin: 0;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--gray-light);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--primary-dark), transparent);
  z-index: 10;
}

.hero-quote {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 20;
  display: none;
}

@media (min-width: 1024px) {
  .hero-quote {
    display: block;
  }
}

.quote-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 20rem;
}

.quote-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background-color: var(--white);
}

@media (min-width: 768px) {
  .features-section {
    padding: 6rem 0;
  }
}

.section-header {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: var(--border-radius-full);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.feature-description {
  color: var(--text-light);
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

@media (min-width: 768px) {
  .about-section {
    padding: 6rem 0;
  }
}

.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

.about-image-container {
  order: 2;
}

@media (min-width: 768px) {
  .about-image-container {
    order: 1;
  }
}

.about-image {
  position: relative;
  height: 25rem;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 41, 66, 0.6), transparent);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.image-caption p {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
}

.about-content {
  order: 1;
}

@media (min-width: 768px) {
  .about-content {
    order: 2;
  }
}

.about-text {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background-color: var(--white);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--text-light);
}

/* Products Section */
.products-section {
  padding: 4rem 0;
  background-color: var(--white);
}

@media (min-width: 768px) {
  .products-section {
    padding: 6rem 0;
  }
}

.section-header-flex {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  text-align: center; /* Centrar los textos */
}

.section-header-flex .section-divider {
  margin-left: auto;
  margin-right: auto;
}

.section-header-flex .section-description {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-header-flex {
    flex-direction: column; /* Mantener en columna para centrar */
    align-items: center;
  }

  /* Botón de "Ver todos los productos" */
  .section-header-flex .btn {
    margin-top: 1.5rem;
  }
}

.products-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
}

.product-image {
  position: relative;
  height: 14rem;
  width: 100%;
  overflow: hidden;
}

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

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-content {
  padding: 1.5rem;
  background-color: var(--white);
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.product-description {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Partners Section */
.partners-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

@media (min-width: 768px) {
  .partners-section {
    padding: 6rem 0;
  }
}

.marquee-container {
  width: 100%;
  overflow: hidden;
}

.marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  flex-shrink: 0;
  margin: 0 2rem;
  height: 8rem;
  width: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  color: var(--gray-dark);
  font-weight: 500;
  font-size: 1.25rem;
  text-align: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Location Section */
.location-section {
  padding: 4rem 0;
  background-color: var(--white);
}

@media (min-width: 768px) {
  .location-section {
    padding: 6rem 0;
  }
}

.location-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: none;
  margin-top: 2rem;
}

.location-map {
  height: 25rem;
  width: 100%;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 2rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background-color: var(--white);
}

@media (min-width: 768px) {
  .contact-section {
    padding: 6rem 0;
  }
}

/* Nuevos estilos para las pestañas de contacto */
.contact-options {
  max-width: 800px;
  margin: 0 auto;
}

.contact-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .contact-tabs {
    flex-direction: row;
    gap: 0;
  }
}

.contact-tab {
  flex: 1;
  padding: 1rem;
  background-color: var(--bg-light);
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .contact-tab:first-child {
    border-radius: var(--border-radius) 0 0 0;
  }

  .contact-tab:last-child {
    border-radius: 0 var(--border-radius) 0 0;
  }
}

.contact-tab.active {
  background-color: var(--white);
  border-bottom-color: var(--white);
  color: var(--primary);
}

.tab-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-tab-content {
  display: none;
}

.contact-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para el formulario de contacto */
.contact-form-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: none;
}

.card-header {
  background-color: var(--primary-dark);
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.card-subtitle {
  color: var(--gray-light);
  margin-top: 0.5rem;
}

.card-body {
  padding: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.15),
              0 4px 12px -2px rgba(178, 34, 34, 0.2);
  transform: translateY(-1px);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--danger);
}

.form-textarea {
  min-height: 7.5rem;
  resize: none;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Estilos para la tarjeta de WhatsApp */
.whatsapp-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: none;
}

.whatsapp-header {
  background-color: var(--whatsapp);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.whatsapp-header-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--white);
}

.whatsapp-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.whatsapp-body {
  padding: 1.5rem;
}

.whatsapp-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.whatsapp-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background-color: var(--bg-light);
  padding: 1.25rem;
  border-radius: var(--border-radius);
}

.whatsapp-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.whatsapp-info-icon {
  color: var(--whatsapp);
}

.whatsapp-info-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}

.whatsapp-info-value {
  color: var(--text-light);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(2.5rem);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: translateY(0);
  animation: whatsapp-breathing 3s ease-in-out infinite;
}

@keyframes whatsapp-breathing {
  0%, 100% {
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3),
                0 4px 6px -2px rgba(37, 211, 102, 0.2);
  }
  50% {
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.5),
                0 4px 6px -2px rgba(37, 211, 102, 0.3),
                0 0 0 8px rgba(37, 211, 102, 0.15);
  }
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
}

.whatsapp-float-icon {
  width: 2rem;
  height: 2rem;
}

/* Footer - Versión más profesional */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-info {
  margin-bottom: 1.5rem;
}

.footer-description {
  color: var(--gray-light);
  margin-bottom: 1.5rem;
  max-width: 25rem;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-light);
}

.footer-contact-icon {
  color: var(--primary-light);
  flex-shrink: 0;
}

.footer-nav {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.footer-nav-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-nav-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background-color: var(--primary);
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  color: var(--gray-light);
  transition: var(--transition);
  display: inline-block;
  position: relative;
}

.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.3s ease;
}

.footer-nav-link:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-nav-link:hover::after {
  width: 100%;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.copyright {
  color: var(--gray-light);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--border-radius-full);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 8px 16px -4px rgba(178, 34, 34, 0.4);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  min-width: 20rem;
  transform: translateY(100%);
  opacity: 0;
  transition: var(--transition);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toast-title {
  font-weight: 600;
}

.toast-description {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Products Page Specific Styles */
.products-page {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .products-page {
    padding: 4rem 0;
  }
}

.back-button {
  margin-bottom: 1.5rem;
}

.products-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}

.page-description {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

.products-sections {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.product-section {
  scroll-margin-top: 5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Arreglo para el botón de WhatsApp en la sección de contacto */
.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.btn-whatsapp .whatsapp-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Estilos adicionales para la sección de productos mejorada */

/* Hero Section para Productos */
.products-page {
  padding: 4rem 0;
}

.products-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-description {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

.product-section {
  margin-bottom: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-section:first-child {
  border-top: none;
}

/* CTA mejorado para la página de productos */
.contact-cta {
  margin: 5rem 0;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-container {
    flex-direction: row;
    align-items: stretch;
  }
}

.cta-content {
  padding: 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.cta-description {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-image-container {
  flex: 1;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: none;
}

@media (min-width: 768px) {
  .cta-image-container {
    display: block;
  }
}

.cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Mejoras para las tarjetas de productos */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.product-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.1));
  z-index: 1;
  pointer-events: none;
}

.product-content {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.product-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  min-height: 4.5rem;
}

/* Mejoras para la sección de encabezado de productos */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--primary);
  margin: 1rem auto 1.5rem;
}

.section-description {
  color: var(--text-light);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Loading and error states */
.loading-message {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.error-message {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--danger);
}

.error-message p {
  margin-bottom: 1rem;
}
/* Hero Video - Background video styling */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4) contrast(1.2);
}

/* Hero Section - Responsive heights */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Hero Content - Responsive spacing */
.hero-content {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  padding: 2rem 0;
}

/* Mobile: Reduce spacing and font sizes */
@media (max-width: 767px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .hero-content {
    padding: 1rem 0;
    margin: 0 !important;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }
}

/* Tablet: Medium spacing */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }
}

/* Desktop: Original spacing */
@media (min-width: 1024px) {
  .hero-content {
    padding: 4rem 0;
  }
}

/* ========================================
   PRODUCT PAGE STYLES
   ======================================== */

/* Estilos específicos para la página de producto individual */

/* Migas de pan (breadcrumb) */
.product-breadcrumb {
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-breadcrumb a {
  color: var(--text-light);
  transition: var(--transition);
}

.product-breadcrumb a:hover {
  color: var(--primary);
}

.product-breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

/* Diseño de la página de detalle del producto */
.product-detail {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Galería de imágenes */
.product-gallery {
  position: relative;
}

.gallery-main {
  position: relative;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-md);
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 10;
}

.gallery-nav:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.9;
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--primary);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Información del producto */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-category {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-title {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.product-short-description {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .product-actions {
    flex-direction: row;
  }
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Pestañas de descripción y especificaciones */
.product-tabs {
  margin: 3rem 0;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--gray-light);
}

.tab-button {
  padding: 1rem 1.5rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
  position: relative;
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.active {
  color: var(--primary);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

.tabs-content {
  padding: 2rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.product-description p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text);
}

.product-description p:last-child {
  margin-bottom: 0;
}

/* Tabla de especificaciones */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--gray-light);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  text-align: left;
}

.specs-table th {
  width: 40%;
  font-weight: 600;
  color: var(--primary-dark);
}

.specs-table td {
  color: var(--text-light);
}

.specs-table tr:nth-child(odd) {
  background-color: var(--bg-light);
}

/* Productos relacionados */
.related-products {
  margin: 4rem 0;
}

.related-products .section-title {
  text-align: center;
}

.related-products .section-divider {
  margin-left: auto;
  margin-right: auto;
}

.related-products .products-grid {
  margin-top: 2rem;
}

@media (max-width: 639px) {
  .related-products .products-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .related-products .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-products .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   ANIMACIONES Y EFECTOS
   ======================================== */

/* 1. SCROLL ANIMATIONS - Fade In */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
}

.fade-in.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 2. SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--primary);
}

/* 3. BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.back-to-top:active {
  transform: translateY(-2px) scale(0.95);
}

/* Responsive back to top */
@media (max-width: 767px) {
  .back-to-top {
    bottom: 5rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* 4. RIPPLE EFFECT */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Asegurar que los botones tengan position relative para el ripple */
.btn, .contact-tab, .nav-link {
  position: relative;
  overflow: hidden;
}

/* 5. HOVER EFFECTS MEJORADOS - Productos */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(178, 34, 34, 0.1);
}

.product-card:active {
  transform: translateY(-4px) scale(0.98);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-image {
  overflow: hidden;
}

.product-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 6. FEATURE CARDS HOVER */
.feature-card {
  transition: all 0.3s ease;
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--primary);
}

.feature-icon {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 7. BUTTON LOADING STATE */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* 8. STAGGER ANIMATION */
.stagger-item {
  opacity: 0;
  animation: stagger-fade-in 0.6s ease-out forwards;
}

@keyframes stagger-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 9. TRANSICIONES SUAVES GLOBALES */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Excepciones para elementos que no deben tener transición */
.hero-video,
.scroll-progress,
.ripple,
.back-to-top,
.fade-in {
  transition: none;
}

/* 10. PARALLAX CONTAINER */
.parallax-container {
  overflow: hidden;
}

.parallax-element {
  will-change: transform;
}

/* 11. GLASSMORPHISM EFFECT */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Quote box con glassmorphism */
.quote-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.quote-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-5px);
}

/* 12. SMOOTH TRANSITIONS PARA INPUTS */
.form-input:focus,
.form-textarea:focus {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(178, 34, 34, 0.1),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 13. BADGE PULSE ANIMATION */
.badge-primary {
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(178, 34, 34, 0);
  }
}

/* 14. SKELETON LOADER */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-light) 25%,
    #f0f0f0 50%,
    var(--bg-light) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-image {
  height: 14rem;
  width: 100%;
}

/* 15. FOCUS STATES MEJORADOS */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 16. SMOOTH SCROLL BEHAVIOR */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* Altura del header */
}

/* 17. REDUCE MOTION PARA ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* 18. CURSOR PERSONALIZADO EN ELEMENTOS INTERACTIVOS */
.btn,
.product-card,
.contact-tab,
.nav-link,
.thumbnail {
  cursor: pointer;
}

.btn:active,
.contact-tab:active {
  transform: scale(0.98);
}

/* 19. HERO GRADIENT ANIMADO */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-overlay {
  background: linear-gradient(
    45deg,
    rgba(26, 41, 66, 0.9),
    rgba(178, 34, 34, 0.7),
    rgba(26, 41, 66, 0.9)
  );
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* 20. PERFORMANCE OPTIMIZATIONS */
.product-card,
.feature-card,
.back-to-top,
.hero-video {
  will-change: transform;
}

/* Resetear will-change después de la animación */
.product-card:hover,
.feature-card:hover {
  will-change: auto;
}