@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

/* jA WEB estilos */

/* --- 1. FUENTES --- */
@font-face {
  font-family: "Brockmann-Reg";
  src: url("https://db.onlinewebfonts.com/t/5dd67dc736f6e0aa2ef04688f069edbe.eot");
  src: url("https://db.onlinewebfonts.com/t/5dd67dc736f6e0aa2ef04688f069edbe.eot?#iefix") format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/5dd67dc736f6e0aa2ef04688f069edbe.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/5dd67dc736f6e0aa2ef04688f069edbe.woff") format("woff"),
    url("https://db.onlinewebfonts.com/t/5dd67dc736f6e0aa2ef04688f069edbe.ttf") format("truetype"),
    url("https://db.onlinewebfonts.com/t/5dd67dc736f6e0aa2ef04688f069edbe.svg#Brockmann") format("svg");
  font-display: swap;
  font-style: normal;
}


/* --- 2. VARIABLES --- */
:root {
  font-size: 16px;

  /* Paleta May26 */
  --color-primary: #27696D;
  --color-accent: #F6C02F;
  --color-dark: #000000;
  --color-surface: #111111;
  --color-border: #222222;
  --color-white: #FFFFFF;
  --color-text-muted: #888888;

  /* Alias semánticos usados en componentes */
  --bg-color: #000000;
  --text-primary: #FFFFFF;
  --text-secondary: #888888;
  --footer-bg: #000000;
  --footer-text: #FFFFFF;

  /* Tipografía */
  --font-heading: "Brockmann-Reg", sans-serif;
  --font-body: "Brockmann-Reg", sans-serif;
  --font-ui: "Barlow", sans-serif;

  /* Layout */
  --container-width: 1400px;
  --spacing-section: 7.5rem;
  --spacing-element: 1.5rem;
}

/* --- 3. RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-style: normal !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-style: normal !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
}

#perspectivas {
  background-color: var(--color-surface);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

#diagnostico .caption {
  margin-left: 0;
}

#diagnostico .heading-2 {
  color: var(--color-white);
}

@media (max-width: 768px) {
  #diagnostico .section-grid {
    gap: 1.5rem;
  }
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 4. SISTEMA TIPOGRAFICO GLOBAL --- */

.heading-1,
.heading-2,
.heading-3,
.subtitle,
.p-intro,
.p-standard,
.p-small,
.faq-question,
.faq-answer {
  font-family: var(--font-heading);
  font-style: normal !important;
}

.btn {
  font-family: var(--font-ui);
  font-style: normal !important;
}

/* Caption styling */
.caption {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  display: inline-block;
  margin:0 0 1.5rem 25px;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  padding: 0;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 18px;
}

.heading-1 {
  font-size: clamp(2.5rem, 8.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0;
}

.heading-2 {
  font-size: clamp(1.75rem, 5.5vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.heading-3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

/* Paragraph Styles */
.p-intro {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--text-primary);
}

.p-standard {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.p-small {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.paragraph-2 {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Subtitulos & Etiquetas */
.subtitle {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* --- 5. UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 1.5rem);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 1024px) {
  .section-grid {
    grid-template-columns: 1fr 2fr;
    gap: clamp(1rem, 4vw, 3rem);
  }
}

@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .section-grid {
    gap: 1.5rem;
  }
}

.grid-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
  justify-items: center;
}

@media (max-width: 768px) {
  .grid-logos {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.grid-internal-split {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: clamp(2rem, 5vw, 6rem);
  border-top: 1.5px solid var(--color-border);
  padding-top: clamp(2rem, 5vw, 2.5rem);
}

@media (max-width: 1024px) {
  .grid-internal-split {
    grid-template-columns: 1fr 2fr;
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

@media (max-width: 768px) {
  .grid-internal-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.uppercase {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}


/* --- 5. COMPONENTES --- */

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #000000;
  border-color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #000000;
  border-color: var(--color-accent);
}

/* CARROUSEL */
.carousel-container {
  overflow-x: auto;
  display: flex;
  gap: 32px;
  padding-bottom: 24px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

/* Cards */
.card-testimonial {
  min-width: 350px;
  padding: 32px;
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease;
  line-height: 1;
  text-transform: uppercase;
}

.card-testimonial:hover {
  background-color: var(--color-accent);
  color: #000000;
  border-color: var(--color-accent);
}

.card-testimonial:hover img {
  filter: invert(1);
}

.card-testimonial:hover .caption {
  color: #000000;
}

/* FAQ */
.faq-item {
  border-bottom: 1.5px solid var(--color-border);
  padding: 32px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 24px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-top: 16px;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- 6. NAVIGATION --- */

/* Header Base Styles */
header {
  background-color: transparent;
  transition: all 0.3s ease;
}

.nav-links {
  font-family: var(--font-heading);
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-left: clamp(0, 5vw, 3.125rem);
  padding: 0;
}

.nav-links a {
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 400;
  font-size: clamp(0.75rem, 2vw, 1rem);
}

.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.hbn-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

.hamburger-nav {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 998;
  margin: 0;
  padding: 15vh 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

#hamburger-toggle {
  position: fixed;
  top: 9px;
  right: 40px;
  z-index: 1000;
  appearance: none;
  -webkit-appearance: none;
  width: 60px;
  height: 60px;
  background-color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  transition: transform 0.3s ease, opacity 0.3s ease, display 0s ease 0.3s;
  display: none;
  opacity: 0;
}

#hamburger-toggle:hover {
  transform: scale(1.05);
}

#hamburger-toggle::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 -8px 0 #fff, 0 8px 0 #fff;
  transition: all 0.3s ease;
}

#hamburger-toggle::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0;
  transition: all 0.3s ease;
}

#hamburger-toggle:checked::before {
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

#hamburger-toggle:checked::after {
  opacity: 1;
}

#hamburger-toggle:checked+.hamburger-nav {
  opacity: 1;
  pointer-events: auto;
}

.hbn-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hbn-links a {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.hbn-links a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hbn-links a:hover {
  background-color: var(--color-accent);
  color: #000000;
  font-style: italic !important;
}

/* --- 7. FOOTER --- */
.footer-extension {
  background-color: var(--footer-bg, #000);
  color: var(--footer-text, #fff);
  padding: 80px 0;
  margin-top: 120px;
}

.footer-extension .gallery-header {
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-extension .gallery-title {
  color: #666;
}

.footer-extension .btn-nav {
  color: white;
  border-color: white;
}

.footer-extension .carousel-img {
  height: 400px;
  border-radius: 24px;
  flex-shrink: 0;
  width: auto;
  max-width: none;
}

.main-footer {
  background-color: var(--footer-bg, #000);
  color: var(--footer-text, #fff);
  padding-bottom: 80px;
}

.main-footer .footer-inner {
  border-top: 1px solid var(--color-border);
  padding-top: 80px;
}

.main-footer .cta-section {
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.main-footer .cta-title {
  max-width: 600px;
}

.main-footer .btn-cta {
  background: white;
  color: black;
  border: none;
}

.btn.btn-primary.btn-cta {
  background-color: var(--color-accent);
  color: #000000;
  border: 1px solid var(--color-accent);
  transition: all 0.3s ease;
}

.btn.btn-primary.btn-cta:hover {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.main-footer .links-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 5rem;
}

.main-footer .column-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.main-footer .link-list {
  line-height: 1.8;
  font-size: 1rem;
}

.main-footer .address-text {
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- 8. RESPONSIVE --- */

/* Tablet and below */
@media (max-width: 1024px) {
  :root {
    --spacing-section: 5rem;
  }

  .section-grid {
    align-items: start;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --spacing-section: 3.75rem;
  }

  .nav-links {
    display: none;
  }

  #hamburger-toggle {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .hamburger-nav {
    padding-top: 100px;
  }

  .hbn-links a {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    padding: 12px 0;
  }

  header {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .card-testimonial {
    min-width: 280px;
    padding: 20px;
  }

  .main-footer .links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --spacing-section: 2.5rem;
  }

  .p-intro {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .card-testimonial {
    min-width: 100%;
    padding: 16px;
  }

  .carousel-container {
    gap: 16px;
  }
}

/* --- 9. REGLAS GLOBALES DE SECCIÓN --- */

/* HEADER */
header {
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo-img {
  height: 30px;
}

.btn-primary {
  white-space: nowrap;
}

/* HERO */
.hero-video-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 60px;
  background-color: var(--color-dark);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.85) 100%);
}

.hero-video-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 12vw, 7.5rem) 0 clamp(2rem, 6vw, 4rem);
  width: 100%;
}

#hero .heading-3 {
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .hero-video-section {
    min-height: 70vh;
  }
}

/* QUIÉNES SOMOS */
#somos {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2rem, 10vw, 7.5rem);
  background-color: var(--color-primary);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

#somos::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/folleto/huella.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

#somos .section-grid {
  position: relative;
  z-index: 1;
}

#somos .heading-3 {
  margin-top: 2.5rem;
}

/* SERVICIOS */
#servicios {
  margin-top: 7.5rem;
  background-color: var(--color-dark);
}

#servicios .heading-2 {
  margin-bottom: 3.75rem;
}

.servicio-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
}

.servicio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.08);
}

.servicio-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  mix-blend-mode: color;
  opacity: 0.4;
}

@media (max-width: 900px) {
  .servicio-img-wrap {
    display: none;
  }
}

/* TESTIMONIOS */
#gente {
  margin-top: 120px;
}

#gente .flex {
  justify-content: space-between;
  margin-bottom: 40px;
}

/* FOOTER */
.cta-title {
  color: var(--color-white);
}

.link-list {
  text-decoration: none;
}

/* --- 10. RESPONSIVE MOBILE --- */

@media (max-width: 768px) {
  header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #servicios .heading-2 {
    margin-bottom: 2.5rem;
  }

  .faq-item .faq-question {
    justify-content: space-between;
    gap: 1rem;
  }

  .faq-item .faq-question span:first-child {
    flex: 1;
    margin-left: 20px;
  }

  .faq-item .faq-question span.icon {
    flex-shrink: 0;
  }

  #perspectivas .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
