/* ===========================
   GLOBAL STYLES — LABRIEGO
   =========================== */

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

:root {
  /* Fondos */
  --bg-light:     #F5F5F5;
  --bg-dark:      #0A0A0A;

  /* Grises */
  --white:        #FFFFFF;
  --gray-100:     #F8F8F8;
  --gray-200:     #E8E8E8;
  --gray-300:     #D0D0D0;
  --gray-500:     #808080;
  --gray-700:     #333333;
  --gray-900:     #1A1A1A;

  /* Acentos */
  --coral:        #E8593C;
  --gold:         #B8860B;

  /* Navbar */
  --nav-bg:       rgba(245, 245, 245, 0.95);

  /* Tipografía */
  --font-main:    'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Espaciado */
  --section-pad:  80px 0;
  --container:    1200px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Loader visible → ocultar scroll */
body.loading {
  overflow: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Títulos de sección */
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  color: var(--gray-700);
  letter-spacing: -0.5px;
}

.section-title.light {
  color: var(--white);
}

/* Botones globales */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: none;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-filled {
  background: var(--white);
  color: var(--gray-900);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
  border: 2px solid var(--gray-700);
}

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

/* ===========================
   LOADER
   =========================== */

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: fit-content;
  font-size: 30px;
  font-weight: bold;
  font-family: monospace;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #0000 calc(50% - 0.5em), #0000 0 calc(50% + 0.5em), #0000 0) right / 300% 100%;
  animation: loaderSweep 2s infinite;
}

.loader-logo::before {
  content: "LABRIEGO";
  color: #0000;
  padding: 0 5px;
  background: inherit;
  background-image: linear-gradient(135deg, var(--gray-900) calc(50% - 0.5em), var(--coral) 0 calc(50% + 0.5em), var(--gray-900) 0);
  -webkit-background-clip: text;
          background-clip: text;
}

@keyframes loaderSweep {
  100% { background-position: left; }
}

/* ===========================
   FADE-IN al scroll
   =========================== */

.fade-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-target.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Utilidades */
.text-center { text-align: center; }

/* Responsive base */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}
