/* ==========================================================================
   Tango Holding — hoja de estilos
   Réplica del sitio original (Wix) en HTML/CSS/JS estático.
   ========================================================================== */

/* ---------- Tipografías -------------------------------------------------- */
/* Sustitutos libres de las fuentes con licencia del sitio original:
   Lulo Clean  -> Montserrat (display, mayúsculas)
   Avenir LT   -> Mulish (texto corrido)                                      */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Mulish:wght@300;400;700;800&display=swap');

/* ---------- Variables ---------------------------------------------------- */
:root {
  --navy: #053160;
  --navy-90: rgba(5, 49, 96, .91);
  --dark: #2b2b2b;
  --dark-94: rgba(43, 43, 43, .94);
  --dark-alt: #2f2e2e;
  --light: #fafafa;
  --muted: #d5d5d5;
  --white: #fff;

  --col: 980px;
  --header-h: 88px;

  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Mulish', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
figure { margin: 0; }

.col {
  width: var(--col);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  position: relative;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--navy);
}
.site-header .col {
  width: 100%; max-width: none;
  height: 100%;
  padding: 0 88px 0 69px;
  display: flex; align-items: center;
}

.logo img { width: 205px; height: 35px; object-fit: contain; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 44px; }

.menu-btn {
  font-family: var(--display);
  font-weight: 700; font-size: 12px; letter-spacing: 2.4px;
  text-transform: uppercase; color: #fff;
  padding: 8px 2px;
}
.menu-btn:hover { color: #9dc2e8; }

/* Desplegable del menú */
.nav-panel {
  position: absolute; top: 100%; right: 133px;
  min-width: 200px;
  background: rgba(190, 190, 190, .38);
  backdrop-filter: blur(2px);
  padding: 12px 0;
  display: none;
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: block;
  padding: 6px 16px;
  font-family: var(--display);
  font-weight: 700; font-size: 14px; letter-spacing: 2.2px;
  text-transform: uppercase; color: #fff;
  text-align: left; white-space: nowrap;
}
.nav-panel a:hover { color: #4d9ae6; }

/* Selector de idioma */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 12px; padding: 6px 2px; }
.lang-btn .flag { width: 22px; height: 15px; border-radius: 2px; display: block; }
.lang-btn .chev {
  width: 14px; height: 14px; stroke: #fff; stroke-width: 2;
  fill: none; transition: transform .2s;
}
.lang.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 16px); right: -20px;
  background: rgba(190, 190, 190, .38);
  backdrop-filter: blur(2px);
  padding: 8px 0; display: none; min-width: 124px;
}
.lang.open .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 1.6px; color: #fff;
}
.lang-menu a:hover { color: #4d9ae6; }

/* ==========================================================================
   Navegación por puntos (lateral derecha)
   ========================================================================== */
.dots-nav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 12px;
}
.dots-nav button {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .85);
  background: transparent; padding: 0;
  transition: background .2s, border-color .2s;
}
.dots-nav button:hover { background: rgba(255, 255, 255, .5); }
.dots-nav button.active { background: #1e7fe0; border-color: #1e7fe0; }

/* ==========================================================================
   Secciones — base
   ========================================================================== */
section { position: relative; overflow: hidden; }

/* Evita que los márgenes de los paneles se colapsen fuera de la sección */
.about .col, .services .col, .contact .col { display: flow-root; }

.section-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}

.panel-title {
  font-family: var(--display);
  font-weight: 700; font-size: 16px; letter-spacing: 3.2px;
  text-transform: uppercase; margin: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  height: 740px;
  margin-top: var(--header-h);
  background: #000;
}
/* z-index propio: las fotos quedan encerradas en su propio contexto de
   apilado, así el z-index que el JS le va subiendo a cada foto nunca puede
   superar al del texto del hero. */
.hero-slides { position: absolute; inset: 0; z-index: 1; }
/* Fundido cruzado sin bajón a negro: ninguna foto se desvanece nunca. La que
   entra aparece ENCIMA de la anterior (el z-index lo asigna el JS), así siempre
   hay una imagen opaca cubriendo el fondo. */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.hero-slide.shown { opacity: 1; }
/* Si el JS no llega a correr, al menos se ve la primera foto en vez de negro. */
.hero-slides:not(.js) .hero-slide:first-child { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .30) 100%);
}

.hero-copy {
  position: absolute; inset: 0; z-index: 5;   /* por encima de las fotos */
  text-align: center; pointer-events: none;
}
/* El texto sale primero y el nuevo entra después, para que nunca se superpongan. */
.hero-copy .slide-copy {
  position: absolute; top: 200px; left: 0; right: 0;
  opacity: 0; transition: opacity .45s ease-in-out 0s;
}
.hero-copy .slide-copy.active {
  opacity: 1; transition: opacity .6s ease-in-out .5s;
}

.hero-title {
  font-family: var(--display);
  font-weight: 700; font-size: 80px; line-height: 1.3;
  letter-spacing: .04em; text-transform: uppercase;
  color: #fff; margin: 0;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .35);
}
.hero-sub {
  font-family: var(--display);
  font-weight: 700; font-style: italic; font-size: 18px;
  letter-spacing: .22em; text-transform: uppercase;
  color: #fff; margin: 20px 0 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 46px;
  display: flex; justify-content: center; gap: 10px;
  list-style: none; margin: 0; padding: 0; z-index: 6;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, .45);
}
.hero-dots button.active { background: #fff; }

/* ==========================================================================
   Quiénes somos
   ========================================================================== */
.about { min-height: 919px; background: var(--navy); }
.about .col { min-height: 919px; }

.about-panel {
  position: relative;
  margin: 90px 0 26px;
  width: 521px; max-width: 100%;
  background: var(--dark-94);
  padding: 51px 49px 40px 23px;
}
.about-panel .panel-title { color: var(--muted); margin-bottom: 34px; }
.about-panel p {
  width: 449px; max-width: 100%;
  margin: 0 0 16px;
  font-size: 15px; line-height: 25.3px; letter-spacing: -.005em;
  color: var(--muted);
}
.about-panel p b { font-weight: 800; }

.person { margin-top: 26px; }
.person .avatar {
  width: 141px; height: 142px;
  border-radius: 50%; overflow: hidden; position: relative;
}
/* Reproduce el encuadre que aplicaba Wix sobre la foto original (1630×3000) */
.person .avatar img {
  position: absolute; left: -38px; top: -20px;
  width: 183px; height: 337px; max-width: none;
}
.person .name {
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #fff; margin: 26px 0 0;
}
.person .role { font-size: 15px; color: #fff; margin: 6px 0 0; }

/* ==========================================================================
   Servicios
   ========================================================================== */
.services { min-height: 750px; background: var(--light); }
.services .col { min-height: 750px; }

.services-panel {
  position: relative;
  margin: 192px 0 203px;
  width: 100%; min-height: 355px;
  background: var(--navy-90);
  padding: 40px 0 44px;
}
.services-panel .panel-title { color: #fff; margin: 0 0 34px 38px; }

.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; }
.service { text-align: center; padding: 0 10px; }
.service img {
  width: auto; height: 100px; object-fit: contain;
  margin: 0 auto 30px;
  filter: brightness(0) invert(1);   /* los originales son line-art oscuro */
}
.service:nth-child(2) img { height: 88px; margin-top: 12px; margin-bottom: 18px; }
.service h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 12px; line-height: 1.5; letter-spacing: 1.4px;
  text-transform: uppercase; color: #fff; margin: 0;
}

/* ==========================================================================
   Proyectos
   ========================================================================== */
.projects { min-height: 825px; background: var(--dark); }
.projects .panel-title { color: #fff; padding-top: 110px; margin-left: 38px; }

.gallery-wrap { position: relative; margin-top: 46px; }
.gallery {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery-item {
  position: relative; flex: 0 0 369px; height: 492px;
  scroll-snap-align: start; overflow: hidden; margin: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item .overlay {
  position: absolute; inset: 0;
  background: rgba(5, 49, 96, .82);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover .overlay,
.gallery-item:focus-within .overlay { opacity: 1; }

.overlay .p-title {
  font-family: var(--display); font-weight: 700;
  font-size: 26px; line-height: 1.25; letter-spacing: 2px;
  text-transform: uppercase; color: #fff; margin: 0;
}
.overlay .p-place { font-size: 15px; font-weight: 800; color: #fff; margin: 10px 0 0; }
.overlay .p-rule { font-size: 15px; font-weight: 800; color: #fff; margin: 6px 0 14px; }
.overlay .p-line { font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 10px; }

.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.gallery-wrap:hover .gal-arrow { opacity: 1; }
.gal-arrow:focus-visible { opacity: 1; }
.gal-arrow svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 1.6; fill: none; }
.gal-arrow.prev { left: 10px; }
.gal-arrow.next { right: 10px; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { min-height: 905px; background: var(--dark-alt); }
.contact .col { min-height: 905px; }

.contact-panel {
  position: relative;
  margin: 135px auto 96px;
  width: 680px; max-width: 100%;
  background: var(--dark-94);
  padding: 90px 0 60px;
}
.contact-panel .panel-title {
  font-size: 26px; letter-spacing: 6px; color: #fff;
  text-align: center; margin: 0 0 68px;
}

.contact-form { padding: 0 110px 0 79px; }
.field { position: relative; margin-bottom: 13px; }
.field label {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex; align-items: center; padding-left: 16px;
  font-size: 15px; color: #fff; pointer-events: none;
  transition: opacity .15s;
}
.field input, .field textarea {
  width: 100%; height: 60px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .85);
  padding: 10px 16px;
  font-family: var(--body); font-size: 15px; font-weight: 300;
  border-radius: 0;
}
.field textarea { height: 129px; resize: none; padding-top: 20px; }
.field textarea + label { align-items: flex-start; padding-top: 18px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: #fff; }
.field.filled label { opacity: 0; }

.btn-send {
  margin-top: 37px;
  width: 216px; height: 37px;
  background: var(--navy); color: #fff;
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  transition: background .2s;
}
.btn-send:hover { background: #07437f; }
.btn-send[disabled] { opacity: .6; cursor: default; }

.form-msg { margin-top: 22px; font-size: 15px; color: #fff; min-height: 22px; }
.form-msg.error { color: #ff9c9c; }

.hp { position: absolute; left: -9999px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .site-header .col { padding: 0 32px; }
  .nav-panel { right: 100px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .site-header .col { padding: 0 20px; }
  .logo img { width: 165px; height: 28px; }
  .header-right { gap: 22px; }
  .nav-panel { right: 68px; }

  .dots-nav { display: none; }

  .hero { height: 540px; }
  .hero-copy .slide-copy { top: 140px; }
  .hero-title { font-size: 46px; letter-spacing: .02em; }
  .hero-sub { font-size: 14px; }

  .about, .about .col { min-height: 0; }
  .about-panel { width: 100%; margin: 60px 0; padding: 40px 24px; }
  .about-panel p { width: 100%; }

  .services, .services .col { min-height: 0; }
  .services-panel { margin: 60px 0; padding: 34px 20px 40px; }
  .services-panel .panel-title { margin-left: 0; text-align: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 10px; }

  .projects { min-height: 0; padding-bottom: 60px; }
  .projects .panel-title { padding-top: 60px; margin-left: 0; }
  .gallery-item { flex: 0 0 280px; height: 380px; }
  .gal-arrow { opacity: 1; background: rgba(0, 0, 0, .35); }

  .contact, .contact .col { min-height: 0; }
  .contact-panel { width: 100%; margin: 60px 0; padding: 44px 0; }
  .contact-panel .panel-title { margin-bottom: 40px; letter-spacing: 4px; }
  .contact-form { padding: 0 24px; }
  .btn-send { width: 100%; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .gallery-item { flex: 0 0 250px; height: 340px; }
  .gallery-item .overlay { opacity: 1; background: rgba(5, 49, 96, .55); }
  .overlay .p-title { font-size: 19px; }
  .overlay .p-place, .overlay .p-line, .overlay .p-rule { font-size: 13px; }
}

/* ==========================================================================
   Ventana emergente de proyecto (réplica del lightbox de Wix)
   ========================================================================== */
.lb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .55);
  display: none;
  overflow-y: auto;
  padding: 40px 20px;
}
.lb-overlay.open { display: block; }
body.lb-open { overflow: hidden; }

.lb-panel {
  position: relative;
  width: 830px; max-width: 100%;
  margin: 0 auto;
  background: #fff;
  color: #2b2b2b;
  padding: 46px 60px 56px;
}

.lb-close {
  position: absolute; top: 26px; right: 26px;
  width: 30px; height: 30px; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.lb-close svg { width: 24px; height: 24px; stroke: var(--navy); stroke-width: 2.4; fill: none; }
.lb-close:hover svg { stroke: #1e7fe0; }

.lb-title {
  font-family: var(--display);
  font-weight: 700; font-size: 34px; line-height: 1.2;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--navy); margin: 0 44px 22px 0;
}
.lb-place {
  font-size: 17px; font-weight: 800; color: #2b2b2b; margin: 0 0 6px;
}
.lb-rule { font-size: 17px; color: #2b2b2b; margin: 0 0 14px; }
.lb-text p { font-size: 17px; line-height: 1.5; color: #3a3a3a; margin: 0 0 2px; }

.lb-gallery-wrap { position: relative; margin-top: 34px; }
.lb-gallery {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.lb-gallery::-webkit-scrollbar { display: none; }
.lb-gallery img {
  flex: 0 0 340px; height: 300px; object-fit: cover;
  scroll-snap-align: start;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .82); border-radius: 50%;
}
.lb-arrow svg { width: 22px; height: 22px; stroke: var(--navy); stroke-width: 2; fill: none; }
.lb-arrow.prev { left: 6px; }
.lb-arrow.next { right: 6px; }

.gallery-item { cursor: pointer; }

@media (max-width: 900px) {
  .lb-overlay { padding: 0; }
  .lb-panel { padding: 40px 22px 44px; min-height: 100%; }
  .lb-title { font-size: 21px; letter-spacing: 3px; margin-right: 36px; }
  .lb-place, .lb-rule, .lb-text p { font-size: 15px; }
  .lb-gallery img { flex: 0 0 260px; height: 220px; }
  .lb-arrow { opacity: 1; }
}
