/* ===== HERO REPARACIONES MODERNO ===== */
.hero-reparaciones {
  position: relative;
  background: linear-gradient(135deg, #38b2ac 0%, #2f855a 100%);
  color: #fff;
  padding: 4rem 1rem;
}

.hero-reparaciones-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-reparaciones-titulo {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.hero-reparaciones-texto {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  background: rgba(47, 133, 90, 0.7);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: inline-block;
  max-width: 400px;
}

.hero-reparaciones-cta {
  display: inline-block;
  background: #f6e05e;
  color: #22543d;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 18px rgba(246, 224, 94, 0.25);
  margin-bottom: 2rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.hero-reparaciones-cta:hover {
  background: #ecc94b;
  color: #2f855a;
  box-shadow: 0 8px 24px rgba(246, 224, 94, 0.35);
}

.hero-reparaciones-iconos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.2rem;
}

.hero-reparaciones-icono {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-reparaciones-icono span {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.hero-reparaciones-icono-label {
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .hero-reparaciones-container {
    max-width: 100%;
    padding: 0;
  }

  .hero-reparaciones-titulo {
    font-size: 1.4rem;
  }

  .hero-reparaciones-texto {
    font-size: 1rem;
    padding: 0.7rem 0.8rem;
    max-width: 100%;
  }

  .hero-reparaciones-cta {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }

  .hero-reparaciones-iconos {
    gap: 1rem;
  }

  .hero-reparaciones-icono span {
    font-size: 1.3rem;
  }

  .hero-reparaciones-icono-label {
    font-size: 0.8rem;
  }
}

/* ====== CLASES PARA GARANTÍA, FAQ, CONTACTO Y FOOTER ====== */
.contacto-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contacto-descripcion {
  font-size: 1.3rem;
  color: var(--cecotec-dark);
  margin-bottom: 40px;
}

.contacto-info {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  margin: 40px 0;
}

.contacto-item {
  margin-bottom: 30px;
}

.contacto-titulo {
  color: var(--cecotec-primary);
  margin-bottom: 15px;
}

.contacto-detalle {
  color: var(--cecotec-gray);
}

.contacto-tel {
  font-size: 1.2rem;
  font-weight: 600;
}

.contacto-domicilio {
  background: var(--gradient-primary);
  color: white;
  padding: 30px;
  border-radius: 15px;
  margin: 30px 0;
}

.footer-box {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
  text-align: left;
}



.footer-titulo {
  color: var(--cecotec-primary);
  margin-bottom: 15px;
}

.footer-detalle {
  opacity: 0.9;
}

.footer-lista {
  list-style: none;
  padding: 0;
}

.footer-li {
  margin-bottom: 8px;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
}

/* ====== NUEVAS CLASES PARA REEMPLAZAR ESTILOS INLINE ====== */
.servicio-box {
  margin-top: 100px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  max-width: 600px;
}

.servicio-titulo {
  margin-bottom: 20px;
}

.servicio-lista {
  text-align: left;
  margin: 0;
  padding-left: 20px;
}

.servicio-item {
  margin-bottom: 10px;
}

.zona-lista {
  margin: 20px 0;
}

.servicio-descripcion {
  font-size: 1.2rem;
  color: var(--cecotec-gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

.icono-servicio {
  font-size: 3rem;
  margin-bottom: 20px;
}

.trabajo-titulo {
  color: var(--cecotec-primary);
  margin: 40px 0 20px;
  font-size: 1.8rem;
}

.trabajo-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.trabajo-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  background: var(--gradient-card);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.trabajo-img {
  width: 100%;
  max-width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.trabajo-descripcion {
  margin-top: 10px;
  color: var(--cecotec-gray);
}

.nosotros-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.nosotros-descripcion {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--cecotec-dark);
  margin-bottom: 30px;
}

.nosotros-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.nosotros-item {
  text-align: center;
}

.icono-nosotros {
  font-size: 3rem;
  color: var(--cecotec-primary);
  margin-bottom: 10px;
}

.nosotros-titulo {
  color: var(--cecotec-primary);
  margin-bottom: 10px;
}

.nosotros-detalle {
  color: var(--cecotec-gray);
}

/* ========= MEJORAS ESTÉTICAS AVANZADAS - CECOTEC ========= */

/* ========= VARIABLES CSS ========= */
:root {
  /* Colores Cecotec */
  --cecotec-primary: #00A5A5;
  --cecotec-secondary: #008B8B;
  --cecotec-accent: #20B2AA;
  --cecotec-dark: #2C3E50;
  --cecotec-light: #F8F9FA;
  --cecotec-gray: #6C757D;
  --cecotec-success: #28A745;
  --cecotec-warning: #FFC107;

  /* Gradientes modernos */
  --gradient-primary: linear-gradient(135deg, var(--cecotec-primary) 0%, var(--cecotec-secondary) 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  --gradient-hero: linear-gradient(135deg, rgba(0, 165, 165, 0.9) 0%, rgba(0, 139, 139, 0.8) 100%);
  --gradient-section: linear-gradient(180deg, transparent 0%, rgba(0, 165, 165, 0.05) 100%);

  /* Sombras modernas */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-hard: 0 15px 50px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 20px 60px rgba(0, 165, 165, 0.25);

  /* Tipografía */
  --font-primary: 'Montserrat', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Espaciado */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;

  /* Bordes */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
}

/* ========= BASE MEJORADA ========= */
body {
  margin: 0;
  font-family: var(--font-primary);
  background-color: var(--cecotec-light);
  color: var(--cecotec-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
  /* Compensar header fijo */
  position: relative;
}

/* Scroll suave mejorado */
html {
  scroll-behavior: smooth;
}

/* Asegurar que el contenido se mantenga dentro de los límites */
.container,
.hero,
.section {
  max-width: 100%;
  box-sizing: border-box;
}

/* Animación de entrada suave */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========= HEADER / NAV MEJORADO ========= */
header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 165, 165, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 80px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-medium);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  width: 100%;
  margin: 0;
  height: 100%;
  overflow-x: auto;
  gap: 16px;
}

.logo img {
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Menú hamburguesa modernizado */
.menu-toggle {
  display: none;
  background: var(--gradient-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  font-size: 24px;
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Menú principal modernizado */
.menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
  padding: 0;
  align-items: center;
  width: 100%;
  overflow-x: auto;
}

.menu a {
  text-decoration: none;
  color: var(--cecotec-dark);
  font-weight: var(--font-weight-semibold);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 165, 165, 0.2);
  transform: translateZ(0);
  will-change: transform;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .menu {
    gap: var(--spacing-xs);
    padding: 0 4px;
    flex-wrap: wrap;
    max-width: 100vw;
    overflow-x: auto;
  }

  .menu a {
    font-size: 0.95rem;
    padding: 8px 10px;
    min-width: 90px;
    white-space: nowrap;
  }
}

.menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: -1;
  border-radius: var(--border-radius-sm);
  transform: translateZ(0);
}

.menu a:hover {
  color: white;
  background: rgba(0, 165, 165, 0.1);
  border-color: var(--cecotec-primary);
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 6px 20px rgba(0, 165, 165, 0.3);
}

.menu a:hover::before {
  left: 0;
}

/* ========= HERO SECTION CON CONTENEDOR FIJO ========= */
.hero {
  /* Contenedor principal con altura fija calculada */
  position: relative;
  width: 100%;
  height: calc(100vh + 600px);
  /* Altura exacta para permitir scroll hasta servicios */
  background: var(--gradient-hero), url('patin_1.jpg') center/cover fixed no-repeat;
  overflow: hidden;
  /* CRÍTICO: previene que el contenido se salga */
  display: block;
  box-sizing: border-box;
}

/* Pseudo-elemento para fondo fijo */
.hero::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero), url('patin_1.jpg') center/cover no-repeat;
  z-index: -1;
  background-attachment: fixed;
}

/* Contenedor de scroll del hero - AQUÍ está la clave */
.hero-scroll-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  /* Permite scroll vertical */
  overflow-x: hidden;
  /* Previene scroll horizontal */
  scroll-behavior: smooth;
  z-index: 2;
}

/* Contenedor interno del contenido del hero */
.hero-content-wrapper {
  position: relative;
  width: 100%;
  min-height: calc(100vh + 700px);
  /* Altura suficiente para permitir scroll */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px var(--spacing-sm) 400px;
  /* Espaciado superior e inferior */
  box-sizing: border-box;
  max-width: 800px;
  margin: 0 auto;
  z-index: 3;
}

/* Gradiente sutil para el hero */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 165, 165, 0.2) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Estilos del contenido del hero */
.hero-content-wrapper>* {
  margin: 0 0 var(--spacing-lg) 0;
  flex-shrink: 0;
  max-width: 100%;
  text-align: center;
}

/* Botón CTA del hero */
.hero-content-wrapper a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  background: white;
  color: var(--cecotec-primary);
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  margin-top: var(--spacing-xl);
}

.hero-content-wrapper a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Asegurar compatibilidad cross-browser */
.hero-scroll-container {
  /* Fallback para navegadores sin soporte de overflow moderno */
  -ms-overflow-style: none;

}

/* Ocultar scrollbar en navegadores WebKit */
.hero-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Asegurar que el contenido del hero nunca cause overflow */
.hero-content-wrapper {
  overflow: visible;
  word-wrap: break-word;
  hyphens: auto;
}

/* Debug styles (temporal) */
.hero-scroll-container {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-content-wrapper {
  background: rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Título del hero con clase gradient-text - FORZAR color blanco */
.hero h1.gradient-text {
  color: white !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: white !important;
  background-clip: initial !important;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero secundario mejorado */
.hero2 {
  background: linear-gradient(135deg, rgba(0, 165, 165, 0.9), rgba(0, 139, 139, 0.8)),
    url('patin_1.jpg') center/cover fixed no-repeat;
  padding: var(--spacing-xxl) var(--spacing-sm);
  text-align: center;
  position: relative;
  color: #fff;
  overflow: hidden;
  /* Fondo fijo para consistencia */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Pseudo-elemento para hero2 también */
.hero2::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 165, 165, 0.9), rgba(0, 139, 139, 0.8)),
    url('patin_1.jpg') center/cover no-repeat;
  z-index: -1;
  background-attachment: fixed;
}

.hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(32, 178, 170, 0.4) 0%, transparent 50%);
}

.hero2-text {
  position: relative;
  z-index: 5;
  max-width: 700px;
  margin: auto;
  animation: heroSlideIn 1s ease-out;
}

.hero2 h2 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero2 p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin: 0;
  opacity: 0.95;
}

/* ========= SECCIONES MODERNIZADAS ========= */
.section {
  padding: calc(var(--spacing-xxl) + 20px) var(--spacing-sm);
  text-align: center;
  position: relative;
  margin-top: 0;
  z-index: 5;
  background: var(--cecotec-light);
}

.section:first-of-type {
  padding-top: calc(var(--spacing-xxl) + 40px);
}

.section.alt {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  border-top: 1px solid rgba(0, 165, 165, 0.1);
  border-bottom: 1px solid rgba(0, 165, 165, 0.1);
}

.section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300A5A5' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--font-weight-bold);
  color: var(--cecotec-dark);
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ========= TARJETAS MODERNIZADAS ========= */
.cards,
.product-grid,
.repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card,
.product-card,
.repair-card {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 165, 165, 0.1);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-xl);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.card::before,
.product-card::before,
.repair-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 165, 165, 0.1), transparent);
  transition: left 0.6s ease;
}

.card:hover::before,
.product-card:hover::before,
.repair-card:hover::before {
  left: 100%;
}

.card:hover,
.product-card:hover,
.repair-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cecotec-primary);
}

.product-card img,
.repair-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-sm);
  transition: transform 0.4s ease;
}

.product-card:hover img,
.repair-card:hover img {
  transform: scale(1.05);
}

.product-card h3,
.repair-card h3,
.card h3 {
  color: var(--cecotec-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-bold);
  font-size: 1.3rem;
}

.product-card p,
.repair-card p,
.card p {
  color: var(--cecotec-gray);
  line-height: 1.6;
}

/* ========= WHATSAPP FLOTANTE MEJORADO ========= */
.whatsapp {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 65px;
  height: 65px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: var(--shadow-hard);
}

.whatsapp img {
  width: 35px;
  height: 35px;
  filter: brightness(1.2);
}

/* ========= LISTAS MEJORADAS ========= */
.list {
  list-style: none;
  max-width: 600px;
  margin: var(--spacing-xl) auto 0;
  padding: 0;
}

.list li {
  background: white;
  margin: var(--spacing-sm) 0;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--cecotec-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.list li::before {
  content: '✓';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cecotec-primary);
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.list li:hover::before {
  opacity: 1;
}

.list li:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-medium);
}

/* ========= FAQ MEJORADO ========= */
details {
  margin: var(--spacing-sm) auto;
  max-width: 700px;
  text-align: left;
  font-size: 1.05em;
}

details summary {
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--border-radius-md);
  font-weight: var(--font-weight-semibold);
  list-style: none;
  position: relative;
  transition: all 0.3s ease;
}

details summary:hover {
  background: var(--cecotec-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

details summary::after {
  content: "›";
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  font-size: 1.2em;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

details>*:not(summary) {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 var(--spacing-md);
  background: linear-gradient(180deg, #f0ffff 0%, #e6ffff 100%);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  transition: all 0.4s ease;
}

details[open]>*:not(summary) {
  max-height: 200px;
  opacity: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid rgba(0, 165, 165, 0.2);
  border-top: none;
}

/* ========= FOOTER MEJORADO ========= */
footer {
  background: linear-gradient(135deg, var(--cecotec-dark) 0%, #34495e 100%);
  color: white;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-sm);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

footer p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========= ETIQUETAS Y BADGES ========= */
.badge-oferta {
  display: inline-block;
  background: linear-gradient(45deg, #c30000, #ff1744);
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: 0.85em;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-soft);
  animation: glow 2s ease-in-out infinite alternate;
}

/* ========= VIDEO WRAP MEJORADO ========= */
.video-wrap {
  width: 100%;
  max-width: 700px;
  margin: var(--spacing-xl) auto;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.video-wrap::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-xl);
  z-index: -1;
}

.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--border-radius-xl);
}

/* ========= ANIMACIONES ========= */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 165, 165, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 165, 165, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 165, 165, 0);
  }
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(195, 0, 0, 0.5);
  }

  to {
    box-shadow: 0 0 20px rgba(195, 0, 0, 0.8);
  }
}

/* ========= RESPONSIVE MEJORADO ========= */
@media (max-width: 768px) {

  /* Header móvil */
  header {
    height: 70px !important;
  }

  body {
    padding-top: 70px !important;
  }

  .nav {
    padding: 0 var(--spacing-md) !important;
  }

  /* Hero móvil */
  .hero {
    padding: calc(var(--spacing-xl) + 70px) var(--spacing-sm) var(--spacing-xl) !important;
    min-height: 180vh !important;
    position: relative !important;
    /* Ajuste del fondo para móvil - alternativa a fixed */
    background-attachment: scroll !important;
  }

  .hero-text {
    position: sticky !important;
    top: 70px !important;
    padding-top: 20px !important;
    min-height: calc(100vh - 70px) !important;
    max-height: calc(100vh - 70px) !important;
  }

  .menu-toggle {
    display: block !important;
  }

  .menu {
    display: none !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.98);
    position: absolute !important;
    top: 70px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-medium);
    z-index: 9999;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .menu.active {
    display: flex !important;
    animation: slideDown 0.3s ease-out;
  }

  .menu li {
    margin: var(--spacing-xs) 0;
  }

  .hero,
  .hero2 {
    padding: var(--spacing-xl) var(--spacing-sm);
  }

  .cards,
  .product-grid,
  .repair-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .section {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
}

/* ========= OPTIMIZACIONES ESPECÍFICAS PARA DESKTOP ========= */
@media (min-width: 1200px) {
  /* ===== HEADER SIMPLIFICADO PARA DESKTOP ===== */

  /* Header más simple y limpio */
  header {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
  }

  /* Navegación simplificada */
  .menu {
    display: flex !important;
    gap: calc(var(--spacing-sm) * 2);
  }

  /* Botones del menú simplificados - SIN ANIMACIONES COMPLEJAS */
  .menu a {
    color: var(--cecotec-dark);
    background: transparent;
    border: none;
    padding: var(--spacing-sm) calc(var(--spacing-sm) * 1.5);
    border-radius: var(--border-radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    transform: none !important;
    will-change: auto;
    isolation: auto;
  }

  /* Hover simple para desktop */
  .menu a:hover {
    color: var(--cecotec-primary);
    background: rgba(0, 165, 165, 0.1);
    transform: none !important;
    box-shadow: none !important;
  }

  /* Eliminar pseudo-elementos complejos en desktop */
  .menu a::before {
    display: none !important;
  }

  /* Animated-border simplificado */
  .animated-border {
    isolation: auto;
    transform: none !important;
  }

  .animated-border::before {
    display: none !important;
  }

  .animated-border:hover::before {
    display: none !important;
  }

  /* Optimización de performance */
  .menu a,
  .animated-border {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    will-change: auto;
  }
}

@media (max-width: 600px) {
  .menu {
    gap: 4px;
    padding: 0 2px;
    flex-wrap: wrap;
    max-width: 100vw;
    overflow-x: auto;
  }

  .menu a {
    font-size: 0.95rem;
    padding: 6px 8px;
    min-width: 70px;
    white-space: nowrap;
  }
}

/* Eliminar cierre extra de llave que causa error de sintaxis */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========= EFECTOS ADICIONALES ========= */
.card:hover,
.product-card:hover,
.repair-card:hover {
  animation: cardHover 0.4s ease-out;
}

@keyframes cardHover {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.02);
  }

  100% {
    transform: translateY(-10px) scale(1);
  }
}

/* Scroll suave mejorado */
html {
  scroll-behavior: smooth;
}

/* Cursor personalizado para elementos interactivos */
button,
.menu a,
.whatsapp,
details summary {
  cursor: pointer;
}

/* Mejoras de accesibilidad */
*:focus {
  outline: 2px solid var(--cecotec-primary);
  outline-offset: 2px;
}

/* Estados de carga */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Micro-interacciones */
.menu-toggle:hover,
.whatsapp:hover {
  filter: brightness(1.1);
}

/* Texto con efecto gradiente */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bordes animados */
.animated-border {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  isolation: isolate;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transition: left 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 2;
  transform: translateZ(0);
}

.animated-border:hover::before {
  left: 100%;
}