/* ===========================
   @font-face — Gotham
=========================== */
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBook.woff2') format('woff2'),
       url('../assets/fonts/GothamBook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/Gotham-Black_0.woff2') format('woff2'),
       url('../assets/fonts/Gotham-Black_0.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   @font-face — CASaygonText
=========================== */
@font-face {
  font-family: 'CASaygonText';
  src: url('../assets/fonts/CASaygonText-Light.woff2') format('woff2'),
       url('../assets/fonts/CASaygonText-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CASaygonText';
  src: url('../assets/fonts/CASaygonText-Semibold.woff2') format('woff2'),
       url('../assets/fonts/CASaygonText-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   VARIABLES GLOBALES
=========================== */
:root {
  --color-rojo:              #930C20;
  --color-negro:             #111111;  /* único negro del sitio */
  --color-blanco:            #FFFFFF;
  --font-base:               'Gotham', -apple-system, BlinkMacSystemFont,
                             'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-secondary:          'CASaygonText', -apple-system, BlinkMacSystemFont,
                             'Segoe UI', Roboto, sans-serif;
  --navbar-height:           103px;
  --diagonal-color-blanco:   #FFFFFF;
  --diagonal-color-negro:    #111111;  /* ← sincronizado con --color-negro */
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background: var(--color-negro);
  color: var(--color-blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ===========================
   SISTEMA DE DIAGONALES
=========================== */
.section-diagonal-bottom--black-to-white,
.section-diagonal-bottom--white-to-black {
  position: relative;
  z-index: 1;
}

/* Negro → Blanco (móvil primero) */
.section-diagonal-bottom--black-to-white::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 25vw;
  background: var(--diagonal-color-blanco);
  clip-path: polygon(0 70%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1; /* ← corregido: era 2, ahora 1 para que el stand lo supere */
  pointer-events: none;
}

/* Blanco → Negro (móvil primero) */
.section-diagonal-bottom--white-to-black::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 25vw;
  background: var(--diagonal-color-negro);
  clip-path: polygon(0 0%, 100% 70%, 100% 100%, 0% 100%);
  z-index: 1; /* ← corregido: era 2, ahora 1 */
  pointer-events: none;
}

/* Desktop */
@media (min-width: 992px) {
  .section-diagonal-bottom--black-to-white::after {
    height: 55vh;
    clip-path: polygon(0 82%, 100% 0%, 100% 100%, 0% 100%);
  }

  .section-diagonal-bottom--white-to-black::after {
    height: 30vh;
    clip-path: polygon(0 0%, 100% 82%, 100% 100%, 0% 100%);
  }
}