/* ========================
 * VARIABLES Y ESTILOS BASE
 * Plataforma Propia de Agencia (OrozDesign)
 * Tokens Canónicos: --agency-* (SOP-DES-001)
 * ======================== */

:root {
  /* Paleta Corporativa de OrozDesign (SOP-DES-001 §A) */
  --agency-one:        #07162d;
  --agency-two:        #9e1428;
  --agency-three:      #ffc857;
  --agency-light-bg:   #f5f5f5;
  --agency-dark-bg:    #07080a;
  --agency-light-text: #f5f5f5;
  --agency-dark-text:  #07080a;
  --agency-success:    #4caf50;
  --agency-warning:    #ffc857;
  --agency-error:      #9e1428;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Barlow', sans-serif !important;
  background-color: var(--agency-light-bg);
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-black {
  font-family: 'Barlow', sans-serif !important;
  font-weight: 900 !important;
}

/* ====================================
 * COMPONENTES REUTILIZABLES (BOTONES)
 * ================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.btn-primary {
  background-color: var(--agency-one);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--agency-one);
}

.btn-highlight {
  background-color: var(--agency-three);
  color: var(--agency-dark-bg);
}

.btn-highlight:hover {
  background-color: var(--agency-three);
}

.btn-pulse {
  animation: pulse-btn 2s infinite ease-in-out;
}

/* ==============================
 * ELEMENTOS DE LA INTERFAZ (UI)
 * ============================== */

#back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 7rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--agency-one);
  color: var(--agency-three);
  border-radius: 9999px;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px 0 rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  #back-to-top {
    bottom: 1.5rem;
  }
}

/* ========================
 * ANIMACIONES (Keyframes)
 * ======================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes pulse-subtle {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.01);
    opacity: 0.85;
  }
}

@keyframes pulse-btn {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}