/* ============================================
   HOME — Corporativo limpio
   ============================================ */

/* HERO con foto de fondo cinematográfica */
.hero {
  background: var(--negro);
  background-image: linear-gradient(135deg, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0.4) 50%, rgba(17,17,17,0.7) 100%), url('../assets/productos/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: calc(100vh - var(--header-height));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 60px 0;
  color: var(--blanco);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: var(--verde);
  z-index: 1;
}

.hero::after {
  content: '';
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(127,196,28,0.15);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(127,196,28,0.3);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--verde);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--verde);
}

.hero-title {
  font-family: var(--fuente-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--blanco);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title em {
  font-style: normal;
  color: var(--verde);
  display: block;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat strong {
  font-family: var(--fuente-display);
  font-size: 2.5rem;
  color: var(--verde);
  display: block;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.hero-stat span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  display: block;
  font-weight: 500;
}

/* HERO VISUAL — panel flotante con blur para que contraste con foto */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 550px;
  margin-left: auto;
}

.hero-producto {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Override del botón outline DENTRO del hero para fondo oscuro */
.hero .btn-outline {
  color: var(--blanco);
  border-color: rgba(255,255,255,0.4);
}

.hero .btn-outline:hover {
  background: var(--blanco);
  color: var(--negro);
  border-color: var(--blanco);
}

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

.hero-producto-label {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--negro);
  color: var(--blanco);
  padding: 18px 24px;
  z-index: 3;
}

.hero-producto-label strong {
  font-family: var(--fuente-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.hero-producto-label span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

.hero-producto-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--rojo);
  color: var(--blanco);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

/* LÍNEAS DE PRODUCTO (2 categorías grandes) */
.lineas-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

.lineas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.linea-card {
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  text-decoration: none;
  color: var(--negro);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.linea-card:hover {
  border-color: var(--rojo);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.linea-card-img {
  aspect-ratio: 16/10;
  background: var(--gris-claro);
  overflow: hidden;
  position: relative;
}

.linea-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.linea-card:hover .linea-card-img img {
  transform: scale(1.05);
}

.linea-card-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--rojo);
  color: var(--blanco);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 1.2rem;
  z-index: 2;
}

.linea-card-body {
  padding: 2.5rem;
  border-top: 4px solid transparent;
  transition: border-color 0.3s;
}

.linea-card:hover .linea-card-body {
  border-top-color: var(--rojo);
}

.linea-card-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.linea-card-title {
  font-family: var(--fuente-display);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.linea-card-desc {
  font-size: 1rem;
  color: var(--gris-texto);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.linea-card-models {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.linea-model-chip {
  background: var(--gris-claro);
  color: var(--negro);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: var(--fuente-display);
  text-transform: uppercase;
}

.linea-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rojo);
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-medio);
}

.linea-card-link span {
  transition: transform 0.25s;
}

.linea-card:hover .linea-card-link span {
  transform: translateX(4px);
}

/* PRODUCTOS DESTACADOS */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.producto-card {
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--negro);
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rojo);
}

.producto-img {
  width: 100%;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

.producto-img img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

.producto-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--rojo);
  color: var(--blanco);
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.producto-badge.negro { background: var(--negro); }

.producto-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--gris-medio);
}

.producto-categoria {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.producto-nombre {
  font-family: var(--fuente-display);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.producto-desc {
  font-size: 0.85rem;
  color: var(--gris-texto);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
}

.producto-spec-inline {
  font-size: 0.8rem;
  color: var(--negro);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  background: var(--gris-claro);
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.producto-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rojo);
  padding-top: 1rem;
  border-top: 1px solid var(--gris-medio);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--negro);
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.about-visual-overlay {
  position: absolute;
  inset: 0;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  color: var(--blanco);
}

.about-visual-overlay .quote {
  font-family: var(--fuente-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-visual-overlay .quote em {
  color: var(--rojo-claro);
  font-style: normal;
}

.about-visual-overlay .author {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gris-oscuro);
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

.about-feature {
  padding: 1.5rem;
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  border-left: 4px solid var(--rojo);
}

.about-feature strong {
  font-family: var(--fuente-display);
  font-size: 2.2rem;
  color: var(--negro);
  display: block;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.about-feature span {
  font-size: 0.8rem;
  color: var(--gris-texto);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* DIFERENCIADORES (tech section dark) */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.tech-card {
  padding: 2.5rem 0;
  border-top: 3px solid var(--rojo);
}

.tech-card-num {
  font-family: var(--fuente-display);
  font-size: 3rem;
  color: var(--rojo);
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 800;
}

.tech-card-title {
  font-family: var(--fuente-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.tech-card-desc {
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* CTA */
.cta-section {
  background: var(--rojo);
  padding: 100px 0;
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--fuente-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 500px;
  opacity: 0.95;
  line-height: 1.7;
}

.cta-visual {
  text-align: center;
  border-left: 2px solid rgba(255,255,255,0.3);
  padding-left: 4rem;
}

.cta-visual .big-number {
  font-family: var(--fuente-display);
  font-size: 9rem;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-visual .label {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0.95;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero::before, .hero::after { display: none; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat strong { font-size: 1.8rem; }

  .lineas-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .lineas-grid { grid-template-columns: 1fr; }

  .productos-grid { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .tech-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-visual { border-left: none; border-top: 2px solid rgba(255,255,255,0.3); padding-left: 0; padding-top: 2rem; }
  .cta-visual .big-number { font-size: 5rem; }
}

@media (max-width: 568px) {
  .productos-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PLACEHOLDERS ELEGANTES (sin fotos aún)
   ============================================ */

/* Card de línea usando foto de producto como centro */
.linea-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-claro);
  overflow: hidden;
}

.linea-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(216,0,38,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.05) 0%, transparent 50%);
}

.linea-placeholder img {
  width: 70% !important;
  height: 70% !important;
  object-fit: contain !important;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
  transform: none !important;
}

.linea-card:hover .linea-placeholder img {
  transform: scale(1.05) !important;
}

.linea-placeholder-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--negro);
  color: var(--blanco);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

.linea-placeholder-seccionales::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

.linea-placeholder-cortinas {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.linea-placeholder-cortinas::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 8px);
  z-index: 1;
}

/* About sin foto: solo quote con fondo decorativo */
.about-visual-nofoto {
  background: var(--negro) !important;
  position: relative;
  overflow: hidden;
}

.about-visual-nofoto::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.about-visual-nofoto::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(216,0,38,0.15) 0%, transparent 60%);
}

.about-visual-overlay-solo {
  background: none !important;
  padding: 3rem !important;
  justify-content: space-between !important;
  color: var(--blanco);
}

/* ============================================
   BOTÓN DESCARGA DE MANUAL (discreto)
   ============================================ */

.producto-manual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-texto);
  padding: 0.75rem 0;
  margin-top: 0.75rem;
  border-top: 1px dashed var(--gris-linea);
  text-decoration: none;
  transition: color 0.2s;
}

.producto-manual:hover {
  color: var(--rojo);
}

.producto-manual span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.producto-manual .pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--gris-claro);
  color: var(--negro);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: all 0.2s;
}

.producto-manual:hover .pdf-icon {
  background: var(--rojo);
  color: var(--blanco);
}

.producto-manual .arrow-down {
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.producto-manual:hover .arrow-down {
  transform: translateY(2px);
}

/* ============================================
   BOTÓN DESCARGA FICHA TÉCNICA (destacado verde)
   ============================================ */

.producto-ficha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--negro);
  padding: 0.9rem 1rem;
  margin-top: 1rem;
  background: rgba(127, 196, 28, 0.12);
  border: 1.5px solid var(--verde);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.producto-ficha:hover {
  background: var(--verde);
  color: var(--negro);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(127, 196, 28, 0.35);
}

.producto-ficha span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.producto-ficha .pdf-icon-verde {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--verde);
  color: var(--negro);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0;
  border-radius: 3px;
  transition: all 0.2s;
}

.producto-ficha:hover .pdf-icon-verde {
  background: var(--negro);
  color: var(--verde);
}

.producto-ficha .arrow-down {
  font-size: 1rem;
  transition: transform 0.2s;
}

.producto-ficha:hover .arrow-down {
  transform: translateY(3px);
}

/* ============================================
   HEROES DE PÁGINAS INTERIORES
   Variantes del hero con foto específica
   ============================================ */

/* Hero más compacto para páginas interiores (no 100vh) */
.hero-page {
  min-height: 500px;
  max-height: 600px;
  padding: 80px 0;
}

@media (min-width: 768px) {
  .hero-page {
    min-height: 550px;
  }
}

/* Hero Seccionales */
.hero-seccionales {
  background-image: linear-gradient(135deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.5) 50%, rgba(17,17,17,0.75) 100%), url('../assets/productos/hero-seccionales.jpg');
}

/* Hero Cortinas */
.hero-cortinas {
  background-image: linear-gradient(135deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.5) 50%, rgba(17,17,17,0.75) 100%), url('../assets/productos/hero-cortinas.jpg');
}

/* Hero Rodamientos */
.hero-rodamientos {
  background-image: linear-gradient(135deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.5) 50%, rgba(17,17,17,0.75) 100%), url('../assets/productos/hero-rodamientos.jpg');
}

/* Hero Nosotros */
.hero-nosotros {
  background-image: linear-gradient(135deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.5) 50%, rgba(17,17,17,0.75) 100%), url('../assets/productos/hero-nosotros.jpg');
}

/* Hero Contacto — Negro elegante con logo marca de agua */
.hero-contacto {
  background: var(--negro);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(127, 196, 28, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(127, 196, 28, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.hero-contacto::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 70%;
  height: 100%;
  background: url('../assets/logo/aztecadrive-logo.png') no-repeat center right;
  background-size: contain;
  opacity: 0.06;
  z-index: 0;
}

/* El borde verde lateral que ya existe funciona con todos */
