/*
Theme Name: ExtremeMotion Hello
Theme URI: https://extrememotion.es
Description: Tema hijo de Hello Elementor para ExtremeMotion. Requiere Hello Elementor instalado.
Template: hello-elementor
Author: ExtremeMotion
Version: 1.0.0
Text Domain: extrememotion-hello
*/

/* =====================================================
   VARIABLES GLOBALES
   ===================================================== */
:root {
  --em-bg:       #0a0a0a;
  --em-card:     #111111;
  --em-border:   #262626;
  --em-primary:  #dc2626;
  --em-primary2: #b91c1c;
  --em-fg:       #fafafa;
  --em-muted:    #737373;
}

/* =====================================================
   BASE
   ===================================================== */
body {
  background: var(--em-bg) !important;
  color: var(--em-fg) !important;
  font-family: 'Inter', sans-serif !important;
}

/* Quita el padding-top que Hello Elementor añade cuando no hay sticky header */
.elementor-template-canvas .elementor-section-wrap,
.site-content { padding-top: 0 !important; }

/* =====================================================
   NAVBAR FIJA
   ===================================================== */
.em-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 64px;
  border-bottom: 1px solid var(--em-border);
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.em-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.em-logo {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--em-fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.em-logo span { color: var(--em-primary); }
.em-logo svg { width: 22px; height: 22px; color: var(--em-primary); flex-shrink: 0; }
.em-nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0; padding: 0;
}
.em-nav-links a {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--em-muted);
  text-decoration: none;
  transition: color .2s;
}
.em-nav-links a:hover,
.em-nav-links a.active { color: var(--em-fg); }

/* =====================================================
   FOOTER
   ===================================================== */
.em-footer {
  background: var(--em-card);
  border-top: 1px solid var(--em-border);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}
.em-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) { .em-footer-inner { grid-template-columns: 1fr; } }
.em-footer-brand p { color: var(--em-muted); font-size: .85rem; max-width: 340px; margin-top: .75rem; }
.em-footer-col h4 {
  font-family: monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--em-muted);
  margin-bottom: .75rem;
}
.em-footer-col ul { list-style: none; padding: 0; margin: 0; }
.em-footer-col li { margin-bottom: .4rem; }
.em-footer-col a { font-size: .875rem; color: var(--em-fg); text-decoration: none; transition: color .2s; }
.em-footer-col a:hover { color: var(--em-primary); }
.em-footer-col span { font-size: .875rem; color: var(--em-muted); }
.em-footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--em-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .73rem;
  color: var(--em-muted);
  flex-wrap: wrap;
  gap: .5rem;
}
.em-footer-bottom .mono { font-family: monospace; text-transform: uppercase; letter-spacing: .12em; }

/* =====================================================
   ELEMENTOR OVERRIDES — COLORES BASE
   ===================================================== */

/* Fondo oscuro en todas las secciones por defecto */
.elementor-section,
.e-con { background-color: var(--em-bg); }

/* Texto blanco por defecto */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor p { color: var(--em-fg); }

/* Separadores */
.elementor-widget-divider .elementor-divider-separator { border-color: var(--em-border) !important; }

/* =====================================================
   ELEMENTOR BOTONES PERSONALIZADOS
   ===================================================== */
.em-btn-primary.elementor-button {
  background: var(--em-primary) !important;
  color: #fff !important;
  border: 2px solid var(--em-primary) !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  padding: .875rem 2rem !important;
  transition: background .2s !important;
}
.em-btn-primary.elementor-button:hover { background: var(--em-primary2) !important; border-color: var(--em-primary2) !important; }

.em-btn-outline.elementor-button {
  background: transparent !important;
  color: var(--em-fg) !important;
  border: 2px solid var(--em-border) !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  padding: .875rem 2rem !important;
}
.em-btn-outline.elementor-button:hover { border-color: var(--em-muted) !important; background: rgba(255,255,255,.05) !important; }

/* =====================================================
   HERO BADGE
   ===================================================== */
.em-hero-badge {
  display: inline-block;
  border: 1px solid rgba(220,38,38,.35);
  background: rgba(220,38,38,.1);
  padding: .3rem .9rem;
  font-family: monospace;
  font-size: .72rem;
  color: var(--em-primary);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 1.5rem;
}

/* =====================================================
   TARJETAS DE ESTADÍSTICAS
   ===================================================== */
.em-stat-card {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color .25s;
  height: 100%;
}
.em-stat-card:hover { border-color: rgba(220,38,38,.5); }
.em-stat-card .em-stat-label {
  font-family: monospace;
  font-size: .72rem;
  color: var(--em-primary);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 1rem;
}
.em-stat-card .em-stat-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--em-fg);
  margin-bottom: .75rem;
  line-height: 1;
}
.em-stat-card .em-stat-desc { font-size: .82rem; color: var(--em-muted); }

/* =====================================================
   SECCIÓN INGENIERÍA — IMAGEN
   ===================================================== */
.em-actuator-img img {
  filter: grayscale(1);
  border: 1px solid var(--em-border) !important;
  transition: filter .7s;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.em-actuator-img img:hover { filter: grayscale(0); }

/* =====================================================
   TARJETA FORMULARIO CONTACTO
   ===================================================== */
.em-form-card {
  background: var(--em-card);
  border: 1px solid var(--em-border);
  padding: 2.5rem;
}

/* WPForms overrides */
.em-form-card .wpforms-field-label { color: var(--em-fg) !important; font-size: .72rem !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: .12em !important; }
.em-form-card .wpforms-field input,
.em-form-card .wpforms-field textarea,
.em-form-card .wpforms-field select {
  background: var(--em-bg) !important;
  border: 1px solid var(--em-border) !important;
  color: var(--em-fg) !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
}
.em-form-card .wpforms-field input:focus,
.em-form-card .wpforms-field textarea:focus { border-color: var(--em-primary) !important; outline: none !important; }
.em-form-card .wpforms-submit {
  background: var(--em-primary) !important;
  border-color: var(--em-primary) !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  width: 100% !important;
  padding: .875rem !important;
}
.em-form-card .wpforms-submit:hover { background: var(--em-primary2) !important; }

/* =====================================================
   UTILIDADES ELEMENTOR
   ===================================================== */
.em-primary-color { color: var(--em-primary) !important; }
.em-muted-color   { color: var(--em-muted)   !important; }
.em-card-bg       { background: var(--em-card) !important; }
.em-border-top    { border-top:    1px solid var(--em-border) !important; }
.em-border-bottom { border-bottom: 1px solid var(--em-border) !important; }
.em-no-radius .elementor-button { border-radius: 0 !important; }

/* Heading gradient para el hero */
.em-gradient-heading .elementor-heading-title {
  background: linear-gradient(to right, #fff 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 767px) {
  .em-navbar-inner { padding: 0 1rem; }
  .em-nav-links { gap: 1rem; }
}
