/* ==========================================
   NOMOS | CONSULTORA ESTRATEGICA
   Identidad visual institucional
   ========================================== */

/* 1. VARIABLES GENERALES */

:root {
  --nomos-blue: #061725;
  --nomos-blue-light: #172B39;
  --nomos-copper: #C4935D;
  --nomos-copper-dark: #9A7448;
  --nomos-white: #F2F0EB;
  --nomos-gray: #BFC5C9;
  --nomos-text: #263D4A;
}

/* 2. CONFIGURACION GENERAL */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--nomos-white);
  color: var(--nomos-text);
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 3. TITULOS */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  color: var(--nomos-blue);
}

h1 {
  font-size: clamp(42px, 6vw, 88px);
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
}

h3 {
  font-size: clamp(25px, 3vw, 36px);
}

/* 4. NAVEGACION */

header {
  transition: background-color 0.3s ease;
}

nav a {
  color: var(--nomos-white);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--nomos-copper);
}

/* 5. ENLACES */

a {
  transition: all 0.3s ease;
}

a:hover {
  color: var(--nomos-copper);
}

/* 6. BOTONES */

button,
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
}

/* Boton principal */

.nomos-button {
  background-color: var(--nomos-copper);
  color: var(--nomos-blue);
  border: 1px solid var(--nomos-copper);
  padding: 15px 28px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.nomos-button:hover {
  background-color: var(--nomos-white);
  border-color: var(--nomos-white);
  color: var(--nomos-blue);
}

/* Boton secundario */

.nomos-button-outline {
  background: transparent;
  color: var(--nomos-white);
  border: 1px solid var(--nomos-white);
  padding: 15px 28px;
  border-radius: 2px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}

.nomos-button-outline:hover {
  background: var(--nomos-white);
  color: var(--nomos-blue);
}

/* 7. SECCIONES */

section {
  position: relative;
}

.nomos-dark-section {
  background-color: var(--nomos-blue);
  color: var(--nomos-white);
}

.nomos-light-section {
  background-color: var(--nomos-white);
  color: var(--nomos-blue);
}

/* 8. PORTADA PRINCIPAL */

.nomos-hero {
  min-height: 100vh;
  background-color: var(--nomos-blue);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  padding: 70px 6.5%;
  box-sizing: border-box;
  color: var(--nomos-white);
}

.nomos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 19, 31, 0.96) 0%,
    rgba(3, 19, 31, 0.78) 38%,
    rgba(3, 19, 31, 0.12) 100%
  );
  pointer-events: none;
}

.nomos-hero > * {
  position: relative;
  z-index: 1;
}

.nomos-hero h1 {
  color: var(--nomos-white);
  max-width: 650px;
}

.nomos-hero p {
  color: var(--nomos-gray);
  max-width: 600px;
}

/* 9. DETALLES Y DESTACADOS */

.nomos-accent {
  color: var(--nomos-copper);
}

.nomos-label {
  color: var(--nomos-copper);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* 10. TARJETAS */

.nomos-card {
  background-color: var(--nomos-blue-light);
  color: var(--nomos-white);
  padding: 30px;
  border: 1px solid rgba(196,147,93,0.25);
  transition: all 0.35s ease;
}

.nomos-card:hover {
  border-color: var(--nomos-copper);
  transform: translateY(-5px);
}

.nomos-card h3 {
  color: var(--nomos-white);
}

/* 11. PIE DE PAGINA */

footer {
  background-color: var(--nomos-blue);
  color: var(--nomos-white);
  padding: 50px 6%;
}

footer a {
  color: var(--nomos-gray);
  text-decoration: none;
}

footer a:hover {
  color: var(--nomos-copper);
}

/* 12. ANIMACIONES */

@keyframes nomosFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nomos-animate {
  animation: nomosFadeIn 1s ease forwards;
}

/* 13. DISPOSITIVOS MOVILES */

@media (max-width: 768px) {

  .nomos-hero {
    min-height: 85vh;
    padding: 100px 7% 60px;
    background-position: center;
  }

  .nomos-hero h1 {
    font-size: 43px;
  }

  .nomos-hero p {
    font-size: 15px;
  }

  h2 {
    font-size: 36px;
  }

  .nomos-button,
  .nomos-button-outline {
    display: block;
    width: fit-content;
    margin-bottom: 12px;
  }

  footer {
    padding: 35px 7%;
  }
}