:root {
  --azul-profundo: #0d47a1;
  --azul-medio: #1565c0;
  --azul-agua: #29b6f6;
  --azul-claro: #90caf9;
  --azul-palido: #e3f2fd;
  --amarillo: #ffd54f;
  --amarillo-oscuro: #f9a825;
}

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

body {
  font-family: "Ysabeau", sans-serif;
  background: linear-gradient(180deg, var(--azul-palido) 0%, #bbdefb 100%);
  color: #1c3d5e;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Ysabeau SC", sans-serif;
  color: var(--azul-profundo);
}

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

/* =========================
   Navegación superior
   ========================= */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: rgba(13, 71, 161, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(13, 71, 161, 0.35);
  border-radius: 12px;
  width: fit-content;
}

.navbar__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__item {
  margin: 0;
}

.navbar__link {
  font-family: "Ysabeau SC", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  padding: 14px 28px;
  display: block;
  transition:
    background 0.3s ease,
    transform 0.25s ease;
}

.navbar__link:hover {
  background: rgba(255, 213, 79, 0.25);
  transform: translateY(-2px);
}

.navbar__link:first-child {
  border-radius: 12px 0 0 12px;
}

.navbar__link:last-child {
  border-radius: 0 12px 12px 0;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: var(--azul-medio);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.hero--inicio {
  background-image: url("img/waterpolo_focas.jpg");
}

.hero--actividades {
  background-image: url("img/waterpolo_focas3.jpg");
}

.hero--contacto {
  background-image: url("img/waterpolo_contacto.jpg");
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 71, 161, 0.75) 0%,
    rgba(13, 71, 161, 0.35) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  padding-left: 6%;
}

.hero__title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 22px;
  text-shadow: 0 2px 6px rgba(19, 19, 18, 0.5);
  line-height: 1.1;
  color: #e3f2fd;
  -webkit-text-stroke: 0.5px rgb(229, 248, 138);
  font-weight: 900;
}

.hero__subtitle {
  font-size: 1.55rem;
  margin-bottom: 32px;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.7;
  color: #e3edf4;
  -webkit-text-stroke: 0.5px rgb(224, 255, 67);
  font-weight: 900;
}

.hero__logo {
  position: absolute;
  top: 40px;
  left: 40px;
  transform: none;
  z-index: 3;
  width: 40px;
  height: 40px;
}

.hero__instagram {
  position: absolute;
  top: 40px;
  right: 40px;
  transform: none;
  z-index: 3;
  width: 40px;
  height: auto;
}

.wp-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}

/* =========================
   Botones
   ========================= */
.wp-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-family: "Ysabeau", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--azul-profundo);
  padding: 15px 34px;
  background: linear-gradient(180deg, #daeeff 0%, var(--azul-claro) 100%);
  box-shadow:
    0 6px 14px rgba(13, 71, 161, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 0.2s ease,
    color 0.3s ease,
    box-shadow 0.2s ease;
}

.wp-btn:active {
  transform: translateY(1px);
}

.wp-btn--pill {
  border-radius: 999px;
}

.wp-btn--tile {
  border-radius: 10px;
  border-bottom: 4px solid var(--azul-medio);
}

.wp-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--azul-agua);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10 T150 10 T200 10 V20 H0 Z' fill='%23e3f6ff' fill-opacity='0.9'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 100px 16px;
  background-position: 0 bottom;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}

.wp-btn:hover {
  color: #06305c;
}

.wp-btn:hover::after {
  transform: translateY(0);
  opacity: 1;
  animation: wp-ola 1.8s linear infinite;
}

@keyframes wp-ola {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-btn:hover::after {
    animation: none;
  }
}

.wp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.65) 48%,
    transparent 66%
  );
  background-size: 260% 100%;
  background-position: -100% 0;
  animation: wp-brillo-suave 4.5s ease-in-out infinite;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.wp-btn:hover::before {
  opacity: 0;
}

@keyframes wp-brillo-suave {
  0% {
    background-position: -120% 0;
  }
  50% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

/* =========================
   Sección de tarjetas
   ========================= */
.section-cards {
  padding: 64px 8%;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
}

.wp-card {
  position: relative;
  border-radius: 20px;
  padding: 30px 28px 26px;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    var(--azul-palido) 0%,
    #cfe8fd 55%,
    var(--azul-claro) 100%
  );
  border: 9px solid var(--azul-medio);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    inset 0 10px 25px rgba(13, 71, 161, 0.18),
    0 12px 28px rgba(13, 71, 161, 0.22);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  flex: 1 1 340px;
  max-width: 480px;
}

.wp-card:hover {
  transform: translateY(-6px);
  border-color: var(--azul-agua);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.65),
    inset 0 10px 25px rgba(13, 71, 161, 0.22),
    0 20px 36px rgba(13, 71, 161, 0.32);
}

.wp-card::before {
  transition: background-position 1.2s ease;
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0 12 Q25 2 50 12 T100 12 T150 12 T200 12 V20 H0 Z' fill='%23ffffff' fill-opacity='0.55'/%3E%3C/svg%3E");
  background-size: 200px 22px;
  background-repeat: repeat-x;
  opacity: 0.8;
}

.wp-card:hover::before {
  background-position: 120px 0;
}

.wp-card__title {
  margin: 6px 0 14px;
  font-size: 1.55rem;
  color: var(--azul-profundo);
  font-weight: 700;
  font-family: "Ysabeau SC", sans-serif;
}

.wp-card__text {
  margin: 0 0 16px;
  color: #274b6b;
  font-size: 1.02rem;
  line-height: 1.6;
}

.wp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1c3d5e;
  font-size: 0.98rem;
  line-height: 1.5;
}

.wp-list .wp-ball {
  flex: none;
  margin-top: 3px;
}

.wp-card__glare {
  position: absolute;
  top: -60%;
  left: -70%;
  width: 45%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: rotate(18deg) translateX(-120%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.wp-card:hover .wp-card__glare {
  transform: rotate(18deg) translateX(340%);
}

/* =========================
   Slider de fotos
   ========================= */
.slider-section {
  padding: 64px 8%;
  background: rgba(255, 255, 255, 0.45);
}

.slider-section__title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 42px;
  color: var(--azul-profundo);
}

.slider-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(13, 71, 161, 0.28);
  border: 6px solid var(--azul-medio);
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider__slide {
  min-width: 100%;
  height: 500px;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 71, 161, 0.75);
  border: none;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    transform 0.25s ease;
}

.slider__btn:hover {
  background: rgba(255, 213, 79, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.slider__btn--prev {
  left: 16px;
}

.slider__btn--next {
  right: 16px;
}

.slider__btn svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--azul-claro);
  border: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.25s ease;
}

.slider__dot.active {
  background: var(--azul-profundo);
  transform: scale(1.2);
}

.slider__dot:hover {
  background: var(--amarillo);
}

/* =========================
   Sección de contacto
   ========================= */
.contact-section {
  padding: 64px 8%;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
}

.contact-info {
  flex: 1 1 380px;
  max-width: 500px;
}

.contact-info__title {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--azul-profundo);
}

.contact-info__text {
  font-size: 1.05rem;
  color: #274b6b;
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  background: linear-gradient(
    165deg,
    var(--azul-palido) 0%,
    #cfe8fd 55%,
    var(--azul-claro) 100%
  );
  border-radius: 14px;
  border: 6px solid var(--azul-medio);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.5),
    0 8px 20px rgba(13, 71, 161, 0.18);
}

.contact-info__icon {
  flex: none;
  width: 36px;
  height: 36px;
}

.contact-info__icon svg {
  width: 100%;
  height: 100%;
  fill: var(--amarillo-oscuro);
}

.contact-info__label {
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 4px;
  font-family: "Ysabeau SC", sans-serif;
}

.contact-info__value {
  color: #1c3d5e;
  font-size: 0.98rem;
}

.contact-info__social {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.contact-info__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--azul-medio);
  transition:
    background 0.3s ease,
    transform 0.25s ease;
}

.contact-info__social a:hover {
  background: var(--amarillo);
  transform: translateY(-4px) scale(1.08);
}

.contact-info__social svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* Formulario de contacto */
.contact-form {
  flex: 1 1 420px;
  max-width: 540px;
  padding: 34px 32px;
  background: linear-gradient(
    165deg,
    var(--azul-palido) 0%,
    #cfe8fd 55%,
    var(--azul-claro) 100%
  );
  border-radius: 20px;
  border: 9px solid var(--azul-medio);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    inset 0 10px 25px rgba(13, 71, 161, 0.18),
    0 12px 28px rgba(13, 71, 161, 0.22);
}

.contact-form__title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--azul-profundo);
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--azul-profundo);
  font-family: "Ysabeau SC", sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 3px solid var(--azul-medio);
  border-radius: 10px;
  font-family: "Ysabeau", sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azul-agua);
  box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: 10px;
}

/* =========================
   Sección imagen + texto
   ========================= */
.section-image-text {
  padding: 64px 8%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 42px;
  background: rgba(255, 255, 255, 0.45);
}

.section-image-text__image {
  flex: 1 1 420px;
  max-width: 560px;
}

.section-image-text__image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(13, 71, 161, 0.28);
  border: 6px solid var(--azul-medio);
}

.section-image-text__content {
  flex: 1 1 420px;
}

.section-image-text__title {
  font-size: 2.1rem;
  margin-bottom: 18px;
  color: var(--azul-profundo);
}

.section-image-text__text {
  font-size: 1.08rem;
  color: #274b6b;
  margin-bottom: 22px;
}

/* =========================
   Footer
   ========================= */
.footer {
  background: linear-gradient(
    180deg,
    var(--azul-medio) 0%,
    var(--azul-profundo) 100%
  );
  color: #ffffff;
  padding: 42px 8% 28px;
}

.footer__container {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.footer__section {
  flex: 1 1 260px;
  max-width: 340px;
}

.footer__title {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--amarillo);
  font-family: "Ysabeau SC", sans-serif;
}

.footer__text {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer__social {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition:
    background 0.3s ease,
    transform 0.25s ease;
}

.footer__social a:hover {
  background: rgba(255, 213, 79, 0.35);
  transform: translateY(-3px);
}

.footer__social svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.footer__bottom {
  text-align: center;
  padding-top: 22px;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  .navbar {
    top: 12px;
    padding: 0;
  }

  .navbar__link {
    font-size: 0.92rem;
    padding: 12px 18px;
  }

  .hero {
    background-size: cover;
    background-position: center;
    height: 100vh;
    padding: 0 5%;
  }

  .hero__title {
    font-size: 2.8rem;
    text-align: center;
  }

  .hero__subtitle {
    font-size: 1.15rem;
    background: rgba(13, 71, 161, 0.2);
    padding: 16px 14px;
    border-radius: 12px;
    display: inline-block;
    text-align: center;
  }

  .hero__content {
    padding-top: 20%;
  }

  .hero__logo {
    position: absolute;
    top: 80%;
    left: 45%;
    transform: translateX(-50%);

    z-index: 3;
    width: 40px;
    height: 40px;
  }

  .hero__instagram {
    position: absolute;
    top: 80px;
    right: 40px;
    transform: none;
    z-index: 3;
    width: 40px;
    height: auto;
  }

  @media (max-width: 768px) {
    .hero--inicio {
      background-image: url("img/foto_waterpolo.jpg");
    }

    .hero--actividades {
      background-image: url("img/foto_actividades.jpg");
    }

    .hero--contacto {
      background-image: url("img/foto_contacto.jpg");
    }
  }

  .section-cards {
    padding: 42px 5%;
  }

  .section-image-text {
    padding: 42px 5%;
  }

  .slider-section {
    padding: 42px 5%;
  }

  .slider-section__title {
    font-size: 1.9rem;
  }

  .slider__slide {
    height: 280px;
  }

  .slider__btn {
    width: 40px;
    height: 40px;
  }

  .slider__btn svg {
    width: 20px;
    height: 20px;
  }

  .contact-section {
    padding: 42px 5%;
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-form {
    max-width: 100%;
  }

  .contact-info__title {
    font-size: 1.8rem;
  }

  .footer {
    padding: 42px 5% 28px;
  }
}
