@import url('../variables.css');


/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {

  font-family: 'Montserrat', sans-serif;

  font-size: var(--fuente-size);

  background: var(--blanco);

  color: var(--texto);

  transition: .3s;
}

/* =========================
   ACCESIBILIDAD
========================= */

body.fuente-legible {

  font-family: 'OpenDyslexic', sans-serif !important;

  line-height: 1.8 !important;

  word-spacing: .15em !important;
}

body.high-contrast {

  background: #000;

  color: #fff;

  --vino: #a50034;

  --blanco: #000;

  --texto: #fff;

  --amarillo: #ffff00;
}

body.high-contrast a {

  color: var(--amarillo) !important;
}

/* =========================
   HERO
========================= */

.hero {

  position: relative;

  height: 380px;

  background:
    url('../../img/portadas_organigramas/ventanilla.jpeg') center/cover no-repeat;

  display: flex;

  justify-content: center;

  align-items: center;

  text-align: center;

  color: #fff;
}

.hero::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, .45);
}

.hero-content {

  position: relative;

  max-width: 1100px;

  padding: 0 20px;
}

.hero-content h1 {

  font-size: 3rem;

  margin-bottom: 15px;
}

.hero-content p {

  font-size: 1.2rem;

  margin-bottom: 20px;
}

/* =========================
   BOTONES
========================= */

.btn {

  padding: 12px 30px;

  border: none;

  border-radius: 8px;

  background: var(--oro);

  color: #fff;

  font-weight: bold;

  cursor: pointer;

  transition: .3s;
}

.btn:hover {

  background: var(--guinda);
}

.btn-institucional {

  display: inline-block;

  margin-top: 2.5rem;

  padding: 12px 30px;

  background: var(--guinda);

  color: #fff;

  text-decoration: none;

  border-radius: 8px;

  transition: .3s;
}

.btn-institucional:hover {

  background: var(--oro);
}

/* =========================
   SECCIONES
========================= */

.section {

  padding: 60px 20px;

  text-align: center;
}

.section h2 {

  color: var(--guinda);

  margin-bottom: 20px;
}

.linea-dorada {

  width: 60px;

  height: 4px;

  background: var(--oro);

  margin: 0 auto 2rem;

  border-radius: 2px;
}

/* =========================
   ORGANIGRAMA
========================= */

#organigrama {

  background: #fff;

  padding: 4rem 1.5rem;

  text-align: center;
}

.tree {

  display: flex;

  flex-direction: column;

  align-items: center;
}

.tree-row {

  display: flex;

  justify-content: center;

  gap: 2.5rem;

  margin-bottom: 4rem;

  flex-wrap: wrap;
}

.tree-block {

  background: #fff;

  padding: 2rem 1.5rem;

  min-width: 250px;

  max-width: 300px;

  border-radius: 1rem;

  text-align: center;

  box-shadow:
    0 6px 10px rgba(0, 0, 0, .15);

  transition: .3s;
}

.tree-block:hover {

  transform:
    translateY(-8px);
}

/* =========================
   INSTITUCIONAL
========================= */

#institucional {

  background: var(--gris_claro);

  padding: 4rem 1.5rem;

  text-align: center;
}

.info-container {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 2rem;
}

.info-card {

  background: #fff;

  border-radius: 12px;

  padding: 1.5rem;

  flex: 1 1 220px;

  max-width: 250px;

  text-align: center;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, .1);

  transition: .3s;
}

.info-card:hover {

  transform:
    translateY(-8px);

  box-shadow:
    0 10px 20px rgba(0, 0, 0, .15);
}

.info-card .icon {

  font-size: 2.5rem;

  color: var(--oro);

  margin-bottom: .75rem;
}

/* =========================
   IMÁGENES
========================= */

img {

  max-width: 100%;

  height: auto;

  display: block;
}

/* =========================
   FOCUS
========================= */

:focus-visible {

  outline: 3px solid var(--amarillo);

  outline-offset: 3px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

  .hero {

    height: 300px;

  }

  .hero-content h1 {

    font-size: 2rem;

  }

  .tree-row {

    flex-direction: column;

    align-items: center;

  }

  .tree-block {

    max-width: 90%;

  }

  .info-container {

    flex-direction: column;

    align-items: center;

  }

}

@media(max-width:480px) {

  .hero-content h1 {

    font-size: 1.8rem;

  }

}