/* =================================================
   BODY.CSS  → Base global PRO
   ================================================= */


/* =================================================
   RESET
   ================================================= */

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



/* =================================================
   FUENTES
   ================================================= */

@font-face {
  font-family: 'Questrial';
  src: url('../fonts/Questrial-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'alrono';
  src: url('../fonts/alrono.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BEBAS';
  src: url('../fonts/BEBAS_.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'bebas_regular';
  src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



/* =================================================
   VARIABLES
   ================================================= */

:root {
  --header-bg: #1E1E20;
  --primary: #e30613;
  --text: #1a1a1a;
  --white: #ffffff;

  --container: 1280px;

  --radius: 8px;
  --transition: .25s ease;
}



/* =================================================
   HTML / BODY
   ================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f3f3f3;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}



/* =================================================
   LAYOUT
   ================================================= */

.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}



/* =================================================
   TIPOGRAFÍA
   ================================================= */

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.3px;
}

p {
  font-weight: 400;
  opacity: 0.9;
}



/* =================================================
   LINKS
   ================================================= */

a {
  text-decoration: none;
  color: inherit;
}



/* =================================================
   IMÁGENES
   ================================================= */

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



/* =================================================
   BOTONES
   ================================================= */

.btn {
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
}



/* =================================================
   SECCIONES
   ================================================= */

.section {
  padding: 85px 0;
}



/* =================================================
   FIX HEADER SPACE
   ================================================= */

body::before {
  content: "";
  display: block;
  height: 95px;
}



/* =================================================
   RESPONSIVE
   ================================================= */

@media (max-width: 768px) {
  .section {
    padding: 55px 0;
  }
}



/* =================================================
   🔥 CURSOR PERSONALIZADO GLOBAL (FORZADO TOTAL)
   ================================================= */


/* =================================================
   CUSTOM CURSOR ANIMADO
   ================================================= */

/* ocultar TODOS los cursores del sistema */

html,
body,
a,
button,
input,
textarea,
select,
* {
  cursor: none !important;
  overflow-x: hidden;
  
}


/* cursor falso */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;

  width: 32px;
  height: 32px;

  background: url("../images/cursor/cursor.png") no-repeat center;
  background-size: contain;

  pointer-events: none;
  z-index: 99999;

  transform-origin: 50% 0%; /* ← centro arriba (MUY importante) */
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 110px;
}

/* ===== DESACTIVAR CURSOR CUSTOM EN MOBILE ===== */
@media (max-width: 900px) {

  body,
  * {
    cursor: auto !important;
  }

  .cursor,
  .cursor-dot,
  .cursor-outline,
  .custom-cursor {
    display: none !important;
  }

}

/* =================================================
   PAGE SLIDE TRANSITION
   ================================================= */

.page-wrapper {
  transition: transform .45s ease, opacity .35s ease;
}

/* sale hacia la izquierda */
.page-slide-out {
  transform: translateX(-100%);
  opacity: 0;
}

/* entrada desde derecha */
.page-slide-in {
  animation: slideIn .45s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
