/* TYPOGRAPHY NOTE: Brandbook specifies Montserrat. Decision made to
   keep Exo 2 (display) + Sora (body) for consistency across all pages.
   Revisit in v2 if client requests migration. */
/* ============================================
   1. :root — Electric Horizon design tokens
   ============================================ */
:root {
  /* ✅ COLORES OFICIALES DEL BRANDBOOK — NO MODIFICAR */
  --color-bg-primary:    #000000;
  --color-bg-secondary:  #0a0a0a;
  --color-bg-card:       #141414;
  --color-gray-mid:      #757572;
  --color-gray-light:    #d6d6d6;
  --color-white:         #ffffff;
  --color-accent:        #ffffff;
  --color-accent-hover:  #d6d6d6;
  --color-accent-glow:   rgba(255, 255, 255, 0.06);
  --color-text-primary:  #ffffff;
  --color-text-secondary:#757572;
  --color-text-muted:    #4a4a48;
  --color-border:        rgba(117, 117, 114, 0.25);
  --color-border-strong: rgba(214, 214, 214, 0.50);
  /* Fonts */
  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Sora', sans-serif;
  /* Spacing scale — rem-based (used in components) */
  --spacing-xs:  0.5rem;
  --spacing-sm:  1rem;
  --spacing-md:  1.5rem;
  --spacing-lg:  2rem;
  --spacing-xl:  3rem;
  --spacing-2xl: 4rem;
  /* Spacing scale — px-based (used in responsive section padding) */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   64px;
  --space-xl:   96px;
  --space-2xl:  128px;
  /* Typography scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;
  --text-9xl:  8rem;
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* ============================================
   2. CSS reset and base styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
input, textarea, select {
  font-family: inherit;
}
/* ============================================
   3. Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}
h1 { font-size: clamp(32px, 6vw, var(--text-8xl)); }
h2 { font-size: clamp(28px, 4.5vw, var(--text-6xl)); }
h3 { font-size: clamp(22px, 3.5vw, var(--text-4xl)); }
h4 { font-size: clamp(18px, 2.5vw, var(--text-3xl)); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }
p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-accent-hover);
}
/* ============================================
   4. Layout utilities
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section {
  padding: var(--space-2xl) 0;
}
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.hidden       { display: none; }
.block        { display: block; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.justify-around   { justify-content: space-around; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.mt-2xl { margin-top: var(--spacing-2xl); }
/* ============================================
   5. Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================
   6. Section divider
   ============================================ */
.section-angled {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 100%);
}
/* ============================================
   12. Utility classes
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
/* ============================================
   13. Media queries — all breakpoints together
   ============================================ */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-sm);
  }
  .section {
    padding: var(--space-lg) 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-md);
  }
  .section {
    padding: var(--space-xl) 0;
  }
}
@media (min-width: 768px) {
  .md\:flex  { display: flex; }
  .md\:grid  { display: grid; }
  .md\:text-left   { text-align: left; }
  .md\:text-center { text-align: center; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
}

/* =========================================================
   QUIÉNES SOMOS
========================================================= */

/* =========================================================
   QUIÉNES SOMOS - ANCHO COMPLETO
========================================================= */

.who-section {
    position: relative;
    width: 100%;
    padding: 0 0 65px;
    background: #ffffff;
    overflow: visible;
}

.who-container {
    position: relative;

    width: 100%;
    max-width: none;

    margin: 0;

    padding: 48px clamp(35px, 6vw, 100px) 45px;

    background-color: #181818;

    border-radius: 30px;

    overflow: visible;
        --who-mx: 50%;
        --who-my: 50%;

    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.075) 0.7px,
            transparent 0.7px
        ),
        radial-gradient(
            rgba(255, 255, 255, 0.035) 0.7px,
            transparent 0.7px
        );

    background-size: 5px 5px, 11px 11px;

    background-position:
        0 0,
        2px 2px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   TÍTULO
========================================================= */

.who-header {
    text-align: center;
    margin-bottom: 42px;
}

.who-header h2 {
    margin: 0;

    font-family: inherit;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 600;
    letter-spacing: 0.08em;

    color: #c4b15d;
}


/* =========================================================
   CONTENIDO
========================================================= */

.who-content {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);

    column-gap: 52px;

    align-items: stretch;
}


/* =========================================================
   COLUMNAS
========================================================= */

.who-column {
    position: relative;

    min-width: 0;

    text-align: center;

    padding: 0 12px 8px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.who-column:hover {
    transform: translateY(-3px);
}


/* TÍTULO MISIÓN / VISIÓN */

.who-column h3 {
    margin: 0 0 18px;

    font-size: clamp(20px, 1.7vw, 27px);
    font-weight: 700;
    letter-spacing: 0.06em;

    color: #ffffff;
}


/* FRASE PRINCIPAL */

.who-column h4 {
    max-width: 570px;
    margin: 0 auto 18px;

    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.5;
    font-weight: 600;

    color: #c4b15d;
}


/* TEXTO */

.who-column p {
    max-width: 610px;
    margin: 0 auto;

    font-size: 13px;
    line-height: 1.7;
    font-weight: 400;

    color: rgba(255, 255, 255, 0.72);

    text-align: center;
}


/* =========================================================
   DIVISOR CENTRAL
========================================================= */

.who-divider {
    width: 1px;
    height: 100%;

    min-height: 270px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(196, 177, 93, 0.7) 15%,
            rgba(196, 177, 93, 0.7) 85%,
            transparent
        );
}


/* =========================================================
   ICONOS
========================================================= */

.who-icon {
    width: 74px;
    height: 74px;

    margin: 28px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.who-icon svg {
    width: 74px;
    height: 74px;

    fill: none;
    stroke: #c4b15d;

    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.who-column:hover .who-icon svg {
    transform: scale(1.07);

    filter:
        drop-shadow(0 0 7px rgba(196, 177, 93, 0.35));
}




/* =========================================================
   QUIÉNES SOMOS — EFECTO DE PUNTOS AL PASAR EL CURSOR
========================================================= */

.who-hover-preview {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 1;

    opacity: 0;

    overflow: hidden;

    transition: opacity .3s ease;
}


/* =========================================================
   ACTIVAR EFECTO
========================================================= */

.who-hover-preview.is-visible {
    opacity: 1;
}


/* =========================================================
   CAMPO DE PUNTOS
========================================================= */

.who-hover-pattern {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.85) 1px,
            transparent 1.5px
        );

    background-size: 7px 7px;

    opacity: .75;

    /*
       La luz sigue la posición del mouse
    */

    mask-image:
        radial-gradient(
            ellipse 190px 150px
            at var(--who-mx, 50%) var(--who-my, 50%),
            #000 0%,
            #000 25%,
            rgba(0,0,0,.8) 45%,
            rgba(0,0,0,.4) 68%,
            transparent 100%
        );

    -webkit-mask-image:
        radial-gradient(
            ellipse 190px 150px
            at var(--who-mx, 50%) var(--who-my, 50%),
            #000 0%,
            #000 25%,
            rgba(0,0,0,.8) 45%,
            rgba(0,0,0,.4) 68%,
            transparent 100%
        );

    animation: whoDotsFloat 4s ease-in-out infinite;
}


/* =========================================================
   ONDAS SUTILES
========================================================= */

.who-hover-pattern::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        repeating-radial-gradient(
            circle at var(--who-mx, 50%) var(--who-my, 50%),
            transparent 0,
            transparent 18px,
            rgba(255,255,255,.12) 20px,
            transparent 23px,
            transparent 38px
        );

    opacity: .65;

    mask-image:
        radial-gradient(
            ellipse 220px 180px
            at var(--who-mx, 50%) var(--who-my, 50%),
            #000 0%,
            #000 35%,
            transparent 100%
        );

    -webkit-mask-image:
        radial-gradient(
            ellipse 220px 180px
            at var(--who-mx, 50%) var(--who-my, 50%),
            #000 0%,
            #000 35%,
            transparent 100%
        );

    animation: whoRipple 3s linear infinite;
}


/* =========================================================
   MOVIMIENTO SUAVE DE LOS PUNTOS
========================================================= */

@keyframes whoDotsFloat {

    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(3px, -2px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }

}


/* =========================================================
   ONDA
========================================================= */

@keyframes whoRipple {

    0% {
        transform: scale(.85);
        opacity: .15;
    }

    50% {
        transform: scale(1);
        opacity: .55;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }

}


/* =========================================================
   CONTENIDO SIEMPRE ENCIMA DEL EFECTO
========================================================= */

.who-header,
.who-content {
    position: relative;
    z-index: 5;
}
