/* =========================================================
   HOME OSCURO CON SLIDER — estilos (plugin EH Home Efectos)
   Cambia colores y fuentes en las variables :root
   ========================================================= */
:root {
  --c-fondo: #0a0a0a;
  --c-fondo2: #121212;
  --c-texto: #f2f0eb;
  --c-suave: #8f8b84;
  --c-linea: rgba(242, 240, 235, .16);
  --f-titulo: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-texto: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

html { scroll-behavior: smooth; }
body, #page-container, #main-content, #et-main-area, #main-content .container { background: var(--c-fondo) !important; color: var(--c-texto); font-family: var(--f-texto); }
#page-container { padding-top: 0 !important; overflow-x: hidden; }
#main-content .container:before { display: none; }

.et_pb_section h1, .et_pb_section h2, .et_pb_section h3 { color: var(--c-texto) !important; padding-bottom: 0; }
.et_pb_section p, .et_pb_section li { color: var(--c-texto); }

/* ---------- Menú fijo transparente ---------- */
#main-header, #main-header.et-fixed-header { background: transparent !important; box-shadow: none !important; }
#main-header .container { width: 92%; max-width: 1600px; }
#top-menu li a, #et-top-navigation a, #main-header #logo + * a {
  color: var(--c-texto) !important; font-family: var(--f-texto);
  letter-spacing: .16em; text-transform: uppercase; font-size: 12px !important; transition: opacity .3s var(--ease);
}
#top-menu li a:hover { opacity: .45 !important; }
#main-header .et_mobile_menu { background: var(--c-fondo) !important; }
.mobile_menu_bar:before { color: var(--c-texto) !important; }

/* ---------- Tipografía ---------- */
.eh-titulo-xl h1, .eh-titulo-xl h2 {
  font-family: var(--f-titulo); font-weight: 500; letter-spacing: -.035em; line-height: .92;
  text-transform: uppercase; font-size: clamp(2.8rem, 9vw, 9.5rem); margin: 0;
}
.eh-titulo-m h2 {
  font-family: var(--f-titulo); font-weight: 500; letter-spacing: -.02em; line-height: 1.05;
  text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 3.4rem);
}
.eh-etiqueta { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--c-suave) !important; margin-bottom: 1.5rem; }
.eh-parrafo p { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.7; max-width: 52ch; color: var(--c-texto); opacity: .85; }

/* ---------- Revelado de texto por líneas ---------- */
.eh-linea { display: block; overflow: hidden; padding-bottom: .06em; }
.eh-linea > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.eh-reveal.eh-visible .eh-linea > span { transform: none; }
.eh-linea:nth-child(2) > span { transition-delay: .12s; }
.eh-linea:nth-child(3) > span { transition-delay: .24s; }
.eh-fade { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.eh-fade.eh-visible { opacity: 1; transform: none; }

/* ---------- SLIDER PRINCIPAL (hero) ---------- */
.eh-slider-sec { padding: 0 !important; }
.eh-slider-sec .et_pb_row { width: 100% !important; max-width: none !important; padding: 0 !important; }
.eh-slider { position: relative; width: 100%; height: 100vh; min-height: 560px; overflow: hidden; background: #000; user-select: none; touch-action: pan-y; }
.eh-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
.eh-slide.eh-activo { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; z-index: 1; }
.eh-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1); transition: transform 9s linear; }
.eh-slide.eh-activo .eh-slide-bg { transform: scale(1.12); }
.eh-slide:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.8) 100%); }
.eh-slide-contenido { position: absolute; z-index: 2; left: 4%; right: 4%; bottom: 14vh; max-width: 1600px; }
.eh-slide-contenido h2, .eh-slide-contenido h1 { font-family: var(--f-titulo); font-weight: 500; letter-spacing: -.035em; line-height: .92; text-transform: uppercase; font-size: clamp(2.6rem, 8.5vw, 9rem); margin: 0; color: #f2f0eb !important; }
.eh-slide-contenido p { max-width: 46ch; margin: 2rem 0 1.6rem; line-height: 1.65; color: #f2f0eb !important; opacity: .85; }
.eh-slide-contenido .eh-linea > span { transition-delay: 0s; }
.eh-slide.eh-activo .eh-linea > span { transform: none; transition-delay: .35s; }
.eh-slide.eh-activo .eh-linea:nth-child(2) > span { transition-delay: .47s; }
.eh-slide.eh-activo .eh-linea:nth-child(3) > span { transition-delay: .59s; }
.eh-slide-contenido .eh-sl-p, .eh-slide-contenido .eh-sl-btn { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.eh-slide.eh-activo .eh-sl-p, .eh-slide.eh-activo .eh-sl-btn { opacity: 1; transform: none; transition-delay: .9s; }
.eh-slide-contenido .eh-etiqueta { color: #f2f0eb !important; opacity: .7; }

.eh-slider-ui { position: absolute; z-index: 5; left: 4%; right: 4%; bottom: 5vh; display: flex; align-items: center; gap: 2rem; color: #f2f0eb; font-size: .75rem; letter-spacing: .2em; }
.eh-contador b { font-weight: 500; font-size: .95rem; }
.eh-barra { position: relative; flex: 1; height: 1px; background: rgba(242,240,235,.25); overflow: hidden; }
.eh-barra i { position: absolute; inset: 0; background: #f2f0eb; transform: scaleX(0); transform-origin: left; }
.eh-barra i.eh-corre { animation: eh-prog var(--eh-dur, 6500ms) linear forwards; }
.eh-slider.eh-pausa .eh-barra i { animation-play-state: paused; }
@keyframes eh-prog { to { transform: scaleX(1); } }
.eh-flechas { display: flex; gap: .8rem; }
.eh-flechas button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(242,240,235,.4); background: transparent; color: #f2f0eb; cursor: pointer; font-size: 1.1rem; transition: background .4s var(--ease), color .4s var(--ease); }
.eh-flechas button:hover { background: #f2f0eb; color: #0a0a0a; }

/* ---------- Botón con relleno ---------- */
.eh-boton .et_pb_button, .eh-btn {
  position: relative; overflow: hidden; display: inline-block; z-index: 0;
  border: 1px solid var(--c-texto) !important; border-radius: 100px !important;
  background: transparent !important; color: var(--c-texto) !important;
  padding: 1rem 2.2rem !important; font-size: 12px !important; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; transition: color .5s var(--ease);
}
.eh-boton .et_pb_button:after { display: none !important; }
.eh-boton .et_pb_button:before, .eh-btn:before {
  content: ""; position: absolute; inset: 0; background: var(--c-texto); z-index: -1;
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.eh-boton .et_pb_button:hover, .eh-btn:hover { color: var(--c-fondo) !important; padding: 1rem 2.2rem !important; }
.eh-boton .et_pb_button:hover:before, .eh-btn:hover:before { transform: none; border-radius: 0; }

/* ---------- Cinta en movimiento ---------- */
.eh-marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--c-linea); padding: 1.4rem 0; }
.eh-marquee-pista { display: inline-flex; animation: eh-marquee 30s linear infinite; }
.eh-marquee:hover .eh-marquee-pista { animation-play-state: paused; }
.eh-marquee-pista span { font-family: var(--f-titulo); font-size: clamp(2rem, 6vw, 5.5rem); text-transform: uppercase; letter-spacing: -.02em; padding-right: 3rem; color: var(--c-texto); }
.eh-marquee-pista span:nth-child(even) { -webkit-text-stroke: 1px var(--c-texto); color: transparent; }
@keyframes eh-marquee { to { transform: translateX(-50%); } }

/* ---------- Carrusel de proyectos (arrastrable) ---------- */
.eh-carrusel { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding-bottom: 1rem; }
.eh-carrusel::-webkit-scrollbar { display: none; }
.eh-carrusel.eh-arrastra { cursor: grabbing; scroll-snap-type: none; }
.eh-carrusel figure { flex: 0 0 min(34vw, 520px); aspect-ratio: 4 / 5; margin: 0; position: relative; overflow: hidden; scroll-snap-align: start; background: #1a1a1a; }
.eh-carrusel img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease); }
.eh-carrusel figure:hover img { transform: scale(1.08); }
.eh-carrusel figcaption { position: absolute; left: 1.2rem; bottom: 1.2rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); }
.eh-carrusel figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- Servicios ---------- */
.eh-servicios { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-linea); }
.eh-servicios li { display: flex; justify-content: space-between; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--c-linea); font-family: var(--f-titulo); font-size: clamp(1.2rem, 2.6vw, 2.4rem); text-transform: uppercase; letter-spacing: -.01em; transition: padding-left .5s var(--ease), color .4s var(--ease); cursor: default; }
.eh-servicios li span { font-size: .8rem; letter-spacing: .2em; color: var(--c-suave); }
.eh-servicios:hover li { color: var(--c-suave); }
.eh-servicios li:hover { color: var(--c-texto); padding-left: 1.5rem; }

/* ---------- Imagen con parallax ---------- */
.eh-img-parallax { overflow: hidden; }
.eh-img-parallax img { transform: scale(1.15); will-change: transform; }

/* ---------- Contacto ---------- */
.eh-contacto-datos { display: grid; grid-template-columns: repeat(3, auto); gap: 3rem; margin: 2.5rem 0; justify-content: start; }
.eh-contacto-datos small { display: block; opacity: .55; letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; margin-bottom: .4rem; }
.eh-contacto-datos a { color: var(--c-texto); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.eh-contacto-datos a:hover { border-color: currentColor; }
.eh-pie { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--c-linea); padding-top: 1.5rem; font-size: .8rem; color: var(--c-suave); }
.eh-pie a { color: var(--c-suave); margin-left: 1.5rem; }

/* ---------- Cursor ---------- */
.eh-cursor { position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease); }
.eh-cursor.eh-grande { width: 64px; height: 64px; }
@media (hover: none) { .eh-cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .eh-carrusel figure { flex-basis: 78vw; }
  .eh-contacto-datos { grid-template-columns: 1fr; gap: 1.5rem; }
  .eh-flechas button { width: 42px; height: 42px; }
  .eh-slide-contenido { bottom: 16vh; }
}
@media (prefers-reduced-motion: reduce) {
  .eh-linea > span, .eh-fade { transition: none; transform: none; opacity: 1; }
  .eh-marquee-pista { animation: none; }
  .eh-slide-bg { transition: none; }
}
