:root {
  --color-primary: #1754cf;
  --color-background-light: #f8f9fc;
  --color-background-dark: #111621;
  --color-text-main: #0e121b;
  --color-text-secondary: #4e6797;
}

/* Base reset (tailwind-like preflight) */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-shadow-color: rgb(0 0 0 / 1);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: "Inter", sans-serif;
}

body {
  margin: 0;
}

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

button,
input,
optgroup,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background-color: transparent;
}

button {
  text-transform: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

/* Base layout */
.pagina {
  background-color: var(--color-background-light);
  color: var(--color-text-main);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.pagina.tema-oscuro {
  background-color: var(--color-background-dark);
  color: #f3f4f6;
}

.contenedor {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .contenedor {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Buttons */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms;
}

.boton--primario {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgb(59 130 246 / 0.2), 0 4px 6px -4px rgb(59 130 246 / 0.2);
}

.boton--primario:hover {
  background-color: #1d4ed8;
}

.boton--elevado:hover {
  transform: translateY(-0.125rem);
}

.boton--elevado:active {
  transform: translateY(0);
}

.boton--secundario {
  background-color: #ffffff;
  border-color: #e7ebf3;
  color: var(--color-text-main);
}

.boton--secundario:hover {
  background-color: #f9fafb;
}

.pagina.tema-oscuro .boton--secundario {
  background-color: #1f2937;
  border-color: #374151;
  color: #ffffff;
}

.pagina.tema-oscuro .boton--secundario:hover {
  background-color: #374151;
}

.boton--claro {
  background-color: #ffffff;
  color: var(--color-text-main);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.boton--claro:hover {
  background-color: #f3f4f6;
}

.boton--cta-claro {
  background-color: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.boton--cta-claro:hover {
  background-color: #f3f4f6;
}

.boton--cta-borde {
  background-color: var(--color-primary);
  border-color: rgb(255 255 255 / 0.3);
  color: #ffffff;
}

.boton--cta-borde:hover {
  background-color: rgb(23 84 207 / 0.8);
}

.boton--nav {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
}

.boton--nav-movil {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.75rem;
}

.boton--hero {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.boton--vacantes {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.boton--cta {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1.125rem;
}

.boton--solo-sm {
  display: none;
}

@media (min-width: 640px) {
  .boton--solo-sm {
    display: inline-flex;
  }
}

/* Accessibility */
.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Navigation */
.navegacion {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  background-color: rgb(255 255 255 / 0.9);
  border-bottom: 1px solid #e7ebf3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pagina.tema-oscuro .navegacion {
  background-color: rgb(17 22 33 / 0.9);
  border-bottom-color: #1f2937;
}

.navegacion__contenedor {
  max-width: 95rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .navegacion__contenedor {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.navegacion__marca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-main);
  flex-shrink: 0;
}

.pagina.tema-oscuro .navegacion__marca {
  color: #ffffff;
}

.navegacion__logo {
  display: block;
  height: 3.25rem;
  width: auto;
}

.navegacion__menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
  justify-content: flex-end;
  flex: 1;
  padding-left: 2rem;
}

@media (max-width: 1023px) {
  .navegacion__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e7ebf3;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  }

  .pagina.tema-oscuro .navegacion__menu {
    background-color: #111621;
    border-bottom-color: #1f2937;
  }

  .navegacion--abierta .navegacion__menu {
    display: flex;
  }

  .navegacion__enlaces {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .navegacion__separador {
    display: none;
  }

  .navegacion__acciones {
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .navegacion__menu {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .navegacion__menu {
    gap: 2rem;
  }
}

.navegacion__enlaces {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1280px) {
  .navegacion__enlaces {
    gap: 1.75rem;
  }
}

.navegacion__enlace {
  font-size: 0.925rem;
  font-weight: 500;
  color: rgb(14 18 27 / 0.8);
}

.navegacion__enlace--activo {
  color: var(--color-primary);
  font-weight: 700;
}

.navegacion__enlace:hover {
  color: var(--color-primary);
}

.pagina.tema-oscuro .navegacion__enlace {
  color: #d1d5db;
}

.pagina.tema-oscuro .navegacion__enlace--activo {
  color: var(--color-primary);
}

.pagina.tema-oscuro .navegacion__enlace:hover {
  color: #ffffff;
}

.navegacion__separador {
  width: 1px;
  height: 1.5rem;
  background-color: #e5e7eb;
  margin: 0 0.5rem;
}

.pagina.tema-oscuro .navegacion__separador {
  background-color: #374151;
}

.navegacion__acciones {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navegacion__acciones-movil {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .navegacion__acciones-movil {
    display: none;
  }
}

.navegacion__boton-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.navegacion__boton-menu .material-symbols-outlined {
  font-size: 1.875rem;
}

.navegacion__boton-menu:hover {
  background-color: #f3f4f6;
}

.pagina.tema-oscuro .navegacion__boton-menu {
  color: #ffffff;
}

.pagina.tema-oscuro .navegacion__boton-menu:hover {
  background-color: #1f2937;
}

/* Footer */
.pie {
  background-color: #0e121b;
  color: #9ca3af;
  padding: 3rem 0 1rem 0;
  border-top: 1px solid #1f2937;
}

.pie__contenedor {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .pie__contenedor {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.pie__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .pie__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pie__marca {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.pie__logo {
  display: block;
  height: 2rem;
  width: auto;
  margin-bottom: 10px;
}

.pie__titulo-marca {
  font-size: 1.5rem;
  font-weight: 700;
}

.pie__descripcion {
  font-size: 0.95rem;
  line-height: 1.625;
  color: #9ca3af;
  margin-bottom: 2rem;
  max-width: 24rem;
}

.pie__social {
  display: flex;
  gap: 1rem;
}

.pie__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #1f2937;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie__social-link:hover {
  background-color: #374151;
  color: #ffffff;
}

.pie__social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.pie__social-icono {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.pie__titulo {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.pie__lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pie__enlace {
  color: #9ca3af;
}

.pie__enlace:hover {
  color: var(--color-primary);
}

.pie__contacto {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pie__contacto-icono {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.pie__contacto-etiqueta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.pie__contacto-texto {
  color: #f1f5f9;
}

.pie__base {
  padding-top: 1rem;
  border-top: 1px solid rgb(31 41 55 / 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .pie__base {
    flex-direction: row;
  }
}

.pie__copyright {
  font-size: 0.875rem;
  color: #cbd5f5;
  width: 100%;
  text-align: center;
}
