/* ========= BASE ========= */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #242424;
}

/* ========= HEADER / NAV ========= */
header {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}
.logo img {
  height: 50px;
  object-fit: contain;
}
/* Botón hamburguesa oculto en desktop */
.menu-toggle { display: none; background: transparent; border: 0; font-size: 32px; cursor: pointer; }
.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
.menu a {
  text-decoration: none;
  color: #242424;
  font-weight: 600;
  transition: color 0.3s ease;
}
.menu a:hover { color: #00A5A5; }

/* ========= HERO ORIGINAL ========= */
.hero {
  background: linear-gradient(rgba(0, 165, 165, 0.6), rgba(0, 165, 165, 0.6)), url('https://cecotec.es/modules/xipblog/img/patinete.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 120px 20px;
}
.hero h1 { font-size: 2.2em; margin-bottom: 12px; }

/* ========= HERO SECUNDARIO (IMAGEN PRINCIPAL NUEVA) ========= */
.hero2 {
  background: url('hero2.jpg') center/cover no-repeat;
  padding: 110px 20px;
  text-align: center;
  position: relative;
  color: #fff;
}
.hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 165, 165, 0.45); /* filtro turquesa */
}
.hero2-text {
  position: relative;
  z-index: 5;
  max-width: 700px;
  margin: auto;
}
.hero2 h2 { font-size: 2.4em; font-weight: 700; margin: 0 0 10px; }
.hero2 p  { font-size: 1.15em; margin: 0; }

/* ========= SECCIONES ========= */
.section { padding: 60px 10%; text-align: center; }
.section.alt { background-color: #f5f5f5; }

/* ========= PRODUCTOS ========= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); }
.product-card img {
  width: 100%; height: 240px;
  object-fit: contain;
  margin-bottom: 15px;
}
.product-card h3 { color: #00A5A5; margin-bottom: 10px; }
.product-card p  { color: #666; font-size: 0.95em; }

/* ========= REPARACIONES ========= */
.repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.repair-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform .3s ease;
}
.repair-card:hover { transform: translateY(-5px); }
.repair-card img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}
.repair-card h3 { color: #00A5A5; margin: 8px 0; }

/* ========= WHATSAPP FLOTANTE (turquesa Cecotec) ========= */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 55px; height: 55px;
  background-color: #00A5A5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.whatsapp:hover { transform: scale(1.1); }
.whatsapp img { width: 30px; height: 30px; }

/* ========= RESPONSIVE (MÓVIL) ========= */
@media (max-width: 768px) {
  .nav { padding: 10px 20px !important; }
  .menu-toggle { display: block !important; }      /* mostrar hamburguesa */
  .menu { 
    display: none !important;                      /* ocultar menú por defecto */
    flex-direction: column !important; 
    background: #fff; position: absolute !important; 
    top: 70px; left: 0; width: 100%; 
    text-align: center; padding: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 9999;
  }
  .menu.active { display: flex !important; }       /* abrir menú al pulsar */
  .menu li { margin: 12px 0; }

  .hero { padding: 90px 16px; }
  .hero h1 { font-size: 1.8em; }
  .hero2 { padding: 90px 16px; }
  .hero2 h2 { font-size: 1.9em; }
  .hero2 p { font-size: 1em; }
}


/* Carrusel con bordes y sombra */
.carousel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  overflow: hidden;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,255,255,0.25);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 26px;
  color: white;
  backdrop-filter: blur(5px);
  border-radius: 8px;
  transition: 0.3s;
  z-index: 10;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(0,255,255,0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media (hover: hover) {
  .carousel img:hover {
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(0,255,255,0.7);
  }
}


/* Animación de zoom en el encabezado */
.hero, .hero2 {
  animation: zoomInHero 3s ease forwards;
  transform: scale(1.2);
  opacity: 0;
}
@keyframes zoomInHero {
  0% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


/* ===== FAQ Visible + Animación suave ===== */
details {
  margin: 15px auto;
  max-width: 700px;
  text-align: left;
  font-size: 1.05em;
}

details summary {
  cursor: pointer;
  padding: 14px 18px;
  background: #00A5A5;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  list-style: none;
  position: relative;
}

details summary::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: 0.3s;
}
details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

details > *:not(summary) {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
  background: #e9ffff;
  border-radius: 0 0 8px 8px;
  transition: max-height .45s ease, opacity .35s ease, padding .35s ease;
}

details[open] > *:not(summary) {
  max-height: 200px;
  opacity: 1;
  padding: 14px 16px;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* ===== HOVER PREMIUM EN PRODUCTOS ===== */
.product-card {
  transition: transform .35s ease, box-shadow .35s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.22);
}
.product-card img {
  transition: transform .35s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}
/* ===== ETIQUETA OFERTA ===== */
.badge-oferta {
  display: inline-block;
  background: #c30000;
  color: white;
  font-weight: 700;
  font-size: 0.85em;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/*  CÓDIGO DEL VIDEO */

.video-wrap {
  width: 100%;
  max-width: 600px;         /* tamaño más razonable */
  margin: 40px auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

/* Aquí está la corrección importante ↓ */
.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;       /* antes cubría y recortaba, ahora se ve entero */
  border-radius: 18px;
}