/* ============================================================
   HRC TECHNOLOGIES — Reconstrucción estática
   Sistema de diseño: negro + dorado, tipografía Figtree
   ============================================================ */

:root {
  --bg:            #000000;
  --bg-2:          #0a0a0a;
  --card:          #14120a;
  --card-hover:    #1b1809;
  --border:        rgba(201, 162, 39, 0.28);
  --border-soft:   rgba(255, 255, 255, 0.08);

  --gold:          #c9a227;   /* acento brillante: iconos, bordes, tabs activos */
  --gold-light:    #e9d9a0;   /* logo / detalles claros */
  --gold-btn:      rgba(142, 119, 16, 0.85);
  --gold-btn-hov:  rgba(176, 148, 20, 0.95);

  --text:          #ffffff;
  --text-muted:    #c3c3c3;
  --text-dim:      #9a9a9a;

  --radius:        8px;
  --radius-lg:     24px;
  --maxw:          1200px;
  --header-h:      92px;

  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--text); font-weight: 600; line-height: 1.2; }

/* Section titles ("Servicios", "Galería De Apps", ...) */
.section { padding: 96px 0; position: relative; }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 56px;
  letter-spacing: .5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: var(--radius);
  background: var(--gold-btn);
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  border: 1px solid rgba(255, 234, 145, 0.25);
  cursor: pointer;
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.btn:hover {
  background: var(--gold-btn-hov);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.25);
}

/* ============================================================
   HEADER / NAV  (barra flotante tipo píldora)
   ============================================================ */
.site-header {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 100;
  transition: top .3s ease;
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(12, 11, 6, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.scrolled .nav {
  background: rgba(8, 7, 4, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.lang { color: var(--gold-light); }

.nav-social { display: flex; gap: 12px; }
.nav-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
  transition: background .2s ease, transform .2s ease;
}
.nav-social a:hover { background: rgba(201, 162, 39, 0.2); transform: translateY(-2px); }
.nav-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; color: var(--gold-light);
}
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 140px 24px 90px;
  background: #000;
}
/* Video de fondo + su imagen fallback (poster) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.82));
}
.hero-inner { max-width: 820px; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  margin-bottom: 26px;
  letter-spacing: .5px;
}
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-layout {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  /* Alinea las tarjetas al borde izquierdo del contenedor y deja el lado
     derecho libre para que la mano llegue al filo de la pantalla. */
  padding-left: max(24px, calc((100vw - var(--maxw)) / 2));
  padding-right: 0;
}
.services-cards {
  flex: 0 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 24px;
  align-items: stretch;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--card-hover);
}
.service-icon {
  width: 46px; height: 46px; color: var(--gold);
  margin-bottom: 26px;
}
.service-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 16px; }
.service-card p { color: var(--text-dim); font-size: 1rem; }
.services-visual {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.services-visual img {
  width: clamp(240px, 26vw, 380px);
  max-width: 100%;
  border-radius: var(--radius-lg);
}

/* ============================================================
   GALERÍA (tabs + carrusel de mockups)
   ============================================================ */
.gallery-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  align-items: center;
}
.gallery-tabs { display: flex; flex-direction: column; gap: 12px; }
.gallery-tab {
  text-align: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .22s ease;
}
.gallery-tab:hover { border-color: var(--border); color: var(--text); }
.gallery-tab.active {
  background: var(--gold-btn);
  color: #fff;
  border-color: rgba(255, 234, 145, 0.4);
}

.gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 620px;
}
.gallery-arrow {
  width: 52px; height: 52px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim);
  transition: color .2s ease, transform .2s ease;
}
.gallery-arrow:hover { color: var(--gold-light); transform: scale(1.1); }
.gallery-arrow svg { width: 40px; height: 40px; stroke: currentColor; fill: none; }

.phone {
  position: relative;
  width: 300px; height: 610px;
  border-radius: 44px;
  background: #0d0d0d;
  border: 3px solid #2a2a2a;
  box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 0 0 6px #000;
  padding: 10px;
  overflow: hidden;
}
.phone::before { /* notch */
  content: '';
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #000; border-radius: 16px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.phone-screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.phone-screen img.active { opacity: 1; }

.gallery-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.gallery-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.25); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.gallery-dots .dot.active { background: var(--gold); transform: scale(1.2); }

/* ============================================================
   NUESTROS CLIENTES  (carrusel infinito de logos)
   ============================================================ */
.clients-intro {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: -32px auto 0;
  font-size: 1.05rem;
}
.clients-marquee {
  position: relative;
  margin-top: 50px;
  overflow: hidden;
  /* Difumina los bordes izquierdo/derecho para el efecto "sin corte". */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 32s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-chip {
  flex: 0 0 auto;
  width: 250px;
  height: 140px;
  margin-right: 30px;
  display: grid;
  place-items: center;
  padding: 26px 30px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.client-chip:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(201, 162, 39, .32);
}
.client-chip img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual img { border-radius: var(--radius-lg); width: 100%; }
.about-list { display: flex; flex-direction: column; }
.about-item { padding: 30px 0; border-bottom: 1px solid var(--border-soft); }
.about-item:last-child { border-bottom: none; }
.about-item .service-icon { margin-bottom: 16px; width: 40px; height: 40px; }
.about-item h3 { font-size: 1.4rem; margin-bottom: 12px; }
.about-item p { color: var(--text-dim); }

/* ============================================================
   EQUIPO
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.team-card { text-align: center; }
.team-photo {
  width: 200px; height: 200px;
  margin: 0 auto 26px;
  border-radius: 16px;
  object-fit: cover;
  background: #14120a;
  border: 1px solid var(--border-soft);
}
/* Fotos recortadas (fondo transparente): dejan ver el fondo de la página */
.team-photo-cut {
  background: transparent;
  border: none;
  border-radius: 0;
  object-fit: contain;
}
.team-role { color: var(--gold-light); font-weight: 600; font-size: .95rem; letter-spacing: .5px; margin-bottom: 6px; }
.team-card h3 { font-size: 1.7rem; margin-bottom: 18px; }
.team-card p { color: var(--text-dim); font-size: .98rem; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 26px; padding-top: 10px; }
.contact-item { display: flex; align-items: center; gap: 18px; }
.contact-item .ci-icon {
  width: 26px; height: 26px; flex: 0 0 auto; color: var(--gold);
}
.contact-item .ci-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.contact-item span, .contact-item a { color: var(--text-muted); font-size: 1.05rem; }
.contact-item a:hover { color: var(--gold-light); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(142, 119, 16, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(142, 119, 16, 0.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { align-self: flex-end; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 40px;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.footer-logo img { height: 46px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; list-style: none; }
.footer-links a { color: var(--text-muted); transition: color .2s ease; }
.footer-links a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.06); color: var(--gold-light);
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: rgba(201,162,39,.2); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-copy { color: var(--text-dim); font-size: .9rem; }

.footer-legal a {
  color: var(--text-dim);
  font-size: .9rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s ease;
}
.footer-legal a:hover { color: var(--gold-light); }

/* ============================================================
   MODAL (Política de privacidad)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }
.modal {
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #0d0c07;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-header h3 { font-size: 1.2rem; color: var(--text); line-height: 1.3; }
.modal-close {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.7rem;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: rgba(201, 162, 39, .2); color: var(--gold-light); }
.modal-body {
  padding: 6px 26px 22px;
  overflow-y: auto;
  color: var(--text-dim);
}
.modal-body .modal-meta {
  color: var(--gold-light);
  font-size: .85rem;
  letter-spacing: .3px;
  margin: 16px 0 10px;
}
.modal-body h4 { color: var(--text); font-size: 1.02rem; margin: 20px 0 8px; }
.modal-body p { margin-bottom: 10px; font-size: .96rem; line-height: 1.7; }
.modal-body ol { margin: 8px 0 12px; padding-left: 20px; }
.modal-body li { margin-bottom: 6px; font-size: .96rem; line-height: 1.65; }
.modal-body a { color: var(--gold-light); text-decoration: underline; }
.modal-footer {
  padding: 16px 26px 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: flex-end;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-layout { padding: 0 24px; justify-content: center; }
  .services-cards { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
  .services-visual { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-layout { grid-template-columns: 260px 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-social {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 18px;
    background: rgba(8,7,4,.97); border: 1px solid var(--border);
    border-radius: 16px; padding: 26px; margin: 0;
    display: none;
  }
  .nav-social { top: auto; position: static; flex-direction: row; justify-content: center; border: none; background: none; padding: 16px 0 0; display: none; }
  .nav.open .nav-links { display: flex; }
  .nav.open .nav-social { display: flex; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .nav-links { margin: 0; }

  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .team-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .gallery-layout { grid-template-columns: 1fr; gap: 40px; }
  .gallery-tabs {
    flex-direction: row; flex-wrap: wrap; justify-content: center;
  }
  .gallery-tab { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .services-cards { grid-template-columns: minmax(0, 400px); justify-content: center; }
  .client-chip { width: 200px; height: 116px; margin-right: 20px; padding: 20px 24px; }
  .phone { width: 260px; height: 530px; }
  .gallery-arrow { width: 40px; height: 40px; }
  .gallery-arrow svg { width: 30px; height: 30px; }
  .contact-form .btn { align-self: stretch; }
}
