/*
Theme Name: Imart-SAS
Theme URI: https://imart-sas.com
Author: Onetic
Description: Tema One-Page minimalista B2B — Imart-SAS Ingeniería & Construcción
Version: 3.0.0
Requires at least: 6.0
Text Domain: imart-sas
*/

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VARIABLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --red:    #E5341A;
  --red-dk: #C22B12;
  --bg:     #080808;
  --bg2:    #121212;
  --line:   rgba(255,255,255,0.09);
  --white:  #FFFFFF;
  --sub:    rgba(255,255,255,0.72);
  --muted:  rgba(255,255,255,0.40);
  --font:   'Inter', system-ui, sans-serif;
  --ease:   0.22s ease;
  --r:      8px;     /* border-radius base */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET & BASE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture sutil */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAV
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 2.5rem;
  box-shadow: 0 1px 0 var(--line);
}

.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 72px; width: auto; filter: drop-shadow(0 2px 10px rgba(229,52,26,0.25)); }

.nav__links { display: flex; gap: 2.5rem; list-style: none; }
.nav__links a {
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); transition: color var(--ease);
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white) !important;
  border: 1.5px solid var(--red);
  padding: 0.5rem 1.25rem;
  border-radius: var(--r);
  transition: background var(--ease) !important;
}
.nav__cta:hover { background: var(--red) !important; }

.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('assets/images/HOTEL HILTON CORFERIAS.jpg') center 30% / cover no-repeat;
}
/* Overlay fuerte en la mitad inferior — asegura legibilidad del texto */
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,  rgba(8,8,8,1.00)  0%,
                              rgba(8,8,8,0.88) 30%,
                              rgba(8,8,8,0.30) 65%,
                              rgba(8,8,8,0.08) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  padding: 0 2.5rem 5.5rem;
  max-width: 820px;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 1.25rem;
}
.hero__tag::before {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--red); border-radius: 2px; flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 4px 32px rgba(0,0,0,0.7);
  margin-bottom: 1.2rem;
}
.hero h2 {
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  font-weight: 500; color: var(--sub); line-height: 1.72;
  max-width: 520px; margin-bottom: 2.5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}
.hero__btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: var(--red); color: var(--white);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.9rem 2rem; border-radius: var(--r);
  box-shadow: 0 4px 24px rgba(229,52,26,0.4);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.hero__btn:hover {
  background: var(--red-dk); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(229,52,26,0.5);
}
.hero__btn svg { width: 16px; height: 16px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PORTFOLIO — PEEK CAROUSEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.portfolio {
  padding: 6rem 0 5rem;
  border-top: 1px solid var(--line);
}
.portfolio__head {
  padding: 0 2.5rem;
  margin-bottom: 2.5rem;
}
.portfolio__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 0.5rem;
}
.portfolio__title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em; color: var(--white);
}

/* ── Slider contenedor — scroll-snap nativo ── */
.slider {
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 7%;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 1rem;
  padding: 0 7%;
  scrollbar-width: none;
  cursor: grab;
}
.slider:active { cursor: grabbing; }
.slider::-webkit-scrollbar { display: none; }

/* Cada slide: 86% ancho — se asoman ~7% de los adyacentes */
.slide {
  flex: 0 0 86%;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
  display: flex;
  flex-direction: column;   /* imagen arriba, caption abajo */
  border: 1px solid var(--line);
}

/* Zona de imagen — limpia, sin superposiciones */
.slide__img {
  position: relative;
  height: 58vh; min-height: 300px;
  overflow: hidden;
  flex-shrink: 0;
}
.slide__img img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
  transition: transform 0.7s ease;
}
.slide:hover .slide__img img { transform: scale(1.04); }

/* Caption debajo — fuera de la imagen */
.slide__caption {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.slide__tag {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 0.3rem;
}
.slide__name {
  font-size: 1rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em;
}

/* Dots + hint debajo */
.slider__footer {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.25rem 0 0;
}
.slider__dots {
  display: flex; gap: 7px;
}
.slider__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: none; cursor: pointer; padding: 0;
  transition: background var(--ease), width var(--ease);
}
.slider__dot.active { background: var(--red); width: 22px; border-radius: 3px; }
.slider__hint {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACTO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}
.contact .container {
  max-width: 1100px; margin: 0 auto; padding: 0 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 0.6rem;
}
.contact__title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
  color: var(--white); margin-bottom: 1.5rem;
}
.contact__divider { width: 28px; height: 2px; background: var(--red); margin-bottom: 1.75rem; border-radius: 2px; }
.contact__info { font-size: 0.88rem; color: var(--sub); line-height: 1.85; }
.contact__info a { color: var(--sub); transition: color var(--ease); }
.contact__info a:hover { color: var(--white); }
.contact__info strong { color: var(--white); font-weight: 600; }

/* ── Form ── */
.form__group { margin-bottom: 0.875rem; }
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 0.875rem 1rem;
  color: var(--white);
  font-family: var(--font); font-size: 0.88rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,.3)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 1em;
  padding-right: 2.5rem; cursor: pointer;
}
.form__group select option { background: #1a1a1a; color: var(--white); }
.form__group textarea { resize: vertical; min-height: 100px; }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,52,26,0.15);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(255,255,255,0.22); }

.form__submit {
  width: 100%; margin-top: 0.5rem;
  padding: 0.95rem;
  background: var(--red); color: var(--white);
  font-family: var(--font); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; border-radius: var(--r); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(229,52,26,0.35);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.form__submit:hover {
  background: var(--red-dk); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229,52,26,0.45);
}
.form__submit svg { width: 18px; height: 18px; }
.form__address {
  margin-top: 1rem; font-size: 0.78rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.4rem;
}
.form__address svg { width: 13px; height: 13px; color: var(--red); flex-shrink: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer p, .footer a { font-size: 0.75rem; color: var(--muted); }
.footer a { transition: color var(--ease); }
.footer a:hover { color: var(--white); }
.footer__links { display: flex; gap: 1.5rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WHATSAPP FLOAT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 400;
  width: 52px; height: 52px; border-radius: 50%;
  background: #16A34A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(22,163,74,0.45);
  transition: transform var(--ease), box-shadow var(--ease);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(22,163,74,0.65); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   UTILS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .slide { flex: 0 0 88%; }
  .slide__img { height: 50vh; }
  .slider { padding: 0 6%; scroll-padding: 0 6%; }
  .contact .container { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  .nav { padding: 1.1rem 1.25rem; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 1.5rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,8,8,0.97); padding: 2rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__burger { display: flex; }

  .hero__content { padding: 0 1.25rem 4rem; }
  .portfolio__head { padding: 0 1.25rem; }
  .slider { padding: 0 5%; scroll-padding: 0 5%; gap: 0.75rem; }
  .slide { flex: 0 0 90%; border-radius: 8px; }
  .slide__img { height: 48vw; min-height: 220px; }
  .slide__caption { padding: 0.75rem 1rem; }
  .slide__name { font-size: 0.88rem; }

  .contact { padding: 4rem 0; }
  .contact .container { padding: 0 1.25rem; gap: 2.5rem; }
  .footer { flex-direction: column; align-items: flex-start; padding: 1.5rem 1.25rem; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; }
}
