:root {
    --color-primary: #004D9B;
    --color-primary-dark: #003A75;
    --color-primary-light: #3379B8;

    --color-secondary: #FFED03;
    --color-secondary-dark: #D9C900;
    --color-secondary-light: #FFF45C;

    --color-gray-100: #F5F5F5;
    --color-gray-200: #E0E0E0;
    --color-gray-300: #BDBDBD;
    --color-gray-400: #9E9E9E;
    --color-gray-500: #757575;
    --color-gray-600: #545454;
    --color-gray-700: #373737;
    --color-gray-800: #212121;
    --color-gray-900: #121212;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.no-wrap {
  white-space: nowrap;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Imagen de fondo con opacidad reducida */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/background.png") repeat center center;
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
}

header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 0;
  position: relative;
  z-index: 1;
}

header img {
  max-width: min(320px, 70vw);
  height: auto;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 1rem;
  width: 100%;
  margin-top: -3.5rem;
}

/* El primer hero deja hueco para el logo superpuesto */
main > .hero:first-child {
  padding-top: 3.5rem;
}

.hero {
  text-align: center;
  width: 100%;
  max-width: 780px;
  background: url("assets/hero_1.png") no-repeat center center;
  background-size: 100% 100%;
  color: var(--color-gray-100);
  padding: 1.5rem;
}

.hero h1,
.hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.hero p {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-gray-200);
  margin-bottom: 8px;
  text-align: left;
}

p.align-left {
  text-align: left;
}

/* Caja alternativa: colores intercambiados (amarilla) */
.hero--alt {
  background-image: url("assets/hero_2.png");
  color: var(--color-gray-800);
}

.hero--alt h1,
.hero--alt h2 {
  color: var(--color-primary);
}

.hero--alt p {
  color: var(--color-gray-700);
}

.contact-list {
  list-style: none;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--color-gray-800);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon {
  width: 1.4em;
  height: 1.4em;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-list a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.hero .contact-hours {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Slider styles ===== */

.slider__wrapper {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.slider {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
}

.slider__viewport {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.4);
  background: #000;
  touch-action: pan-y;
}

.slider__track {
  display: flex;
  transition: transform 0.45s ease;
}

.slider__slide {
  min-width: 100%;
  display: block;
  margin: 0;
}

.slider__slide img {
  width: 100%;
  height: clamp(220px, 38vw, 420px);
  display: block;
  object-fit: cover;
  background: #111;
}

.slider__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider__button:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.slider__button--prev {
  left: 0.75rem;
}

.slider__button--next {
  right: 0.75rem;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.slider__dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 45, 84, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Contact list dentro de heroes azules: enlaces en amarillo */
.hero:not(.hero--alt) .contact-list {
  color: var(--color-gray-200);
}

.hero:not(.hero--alt) .contact-list a {
  color: var(--color-secondary);
}

.hero:not(.hero--alt) .contact-list a:hover {
  color: var(--color-secondary-light);
}

/* ===== Footer styles ===== */

footer {
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-gray-300);
}

footer p {
  margin-bottom: 5px;
}

footer a {
  color: var(--color-gray-200);
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Tablet y superior */

@media (min-width: 481px) {
  header {
    padding: 2rem 1rem 0;
  }

  main {
    margin-top: -3.5rem;
  }

  .hero {
    padding: 2rem 2.5rem;
  }
}

/* Desktop */
@media (min-width: 768px) {
  body::before {
    background-size: 600px auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .slider__button {
    display: none;
  }
}

@media (max-width: 480px) {
  .slider__button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .slider__button--prev {
    left: 0.5rem;
  }

  .slider__button--next {
    right: 0.5rem;
  }
}

