:root {
  /* ===== PALETA CORPORATIVA REMAJO ===== */
  --color-primario: #344D76; 
  --color-acento: #8C3A3A;   
  --color-oscuro: #0F172A;   

  --color-texto: #334155;  
  --color-fondo: #F8FAFC;   
  --color-blanco: #ffffff;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden; 
}

/* ===== CONTENEDOR ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== HEADER / NAVBAR ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 130px; 
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.3s ease;
}

header.transparent {
  background: transparent;
  box-shadow: none;
}

header.solid {
  background: linear-gradient(
    135deg,
    var(--color-oscuro) 0%,
    var(--color-primario) 100%
  );
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1002;
  flex-shrink: 0; 
}

.logo img {
  height: 110px; 
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

/* ===== NAV (ESTILOS GENERALES) ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  position: relative;
  text-decoration: none;
  color: var(--color-blanco);
  font-weight: 500;
  padding-bottom: 5px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Línea animada */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-acento); 
  transition: width 0.35s cubic-bezier(.4,0,.2,1);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* ===== BOTÓN PRIMARIO ===== */
.btn-primary {
  background-color: var(--color-primario);
  color: var(--color-blanco);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--color-acento);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(140, 58, 58, 0.3);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--color-oscuro);
  color: var(--color-blanco);
  text-align: center;
  padding: 4rem 1rem;
  margin-top: 5rem;
  border-top: 4px solid var(--color-primario); 
}

.footer-socials {
  margin-bottom: 2rem;
}

.footer-socials a {
  margin: 0 10px;
  padding: 10px 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.footer-socials a:hover {
  background-color: var(--color-acento); 
  border-color: var(--color-acento);
  color: white;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== ANIMACIONES ===== */
.fade-in {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   HAMBURGER BUTTON (Estilos Base)
================================ */
.hamburger {
  display: none; 
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px; 
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
  outline: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  transform-origin: left center;
}

/* Transformación a "X" al abrir */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 0px;
}

.hamburger.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 20px;
  left: 0px;
}

/* ===============================
   RESPONSIVE
================================ */

/* TABLET (max-width: 992px) */
@media (max-width: 992px) {
  header {
    height: 100px; 
  }

  .logo img {
    height: 80px;
  }

  nav ul {
    gap: 1.4rem;
  }
}

/* MÓVIL (max-width: 768px) */
@media (max-width: 768px) {
  
  header {
    height: 90px; 
  }

  .logo img {
    height: 70px; 
  }

  .hamburger {
    display: flex;
  }

  /* Menú desplegable móvil */
  nav ul {
    position: fixed;
    top: 90px; 
    right: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: linear-gradient(
      180deg,
      var(--color-oscuro),
      var(--color-primario)
    );
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding-bottom: 3rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  nav ul.active {
    transform: translateX(0); 
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
  }

  nav ul li a {
    font-size: 1.5rem; 
    font-weight: 600;
  }
  footer {
    padding: 3rem 1rem;
  }
}

/* MÓVIL PEQUEÑO (max-width: 480px) */
@media (max-width: 480px) {
  nav ul li a {
    font-size: 1.3rem;
  }

  .btn-primary {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}