:root {
  --navy: #010d35;
  --navy-2: #061b54;
  --blue: #0075ff;
  --blue-soft: #eaf3ff;
  --orange: #fe951c;
  --ink: #06143d;
  --muted: #687795;
  --line: rgba(7, 28, 78, 0.12);
  --shadow: 0 24px 70px rgba(1, 13, 53, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f3f7fc;
  padding-top: 90px;
  overflow-x: hidden;
}

.back-to-coaching-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(7, 28, 78, 0.12);
  box-shadow: 0 14px 34px rgba(1, 13, 53, 0.14);
  text-decoration: none;
  font-weight: 850;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.back-to-coaching-btn:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-2px);
}

.section-padding {
  padding: 100px 0;
}

.coaching-hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 117, 255, 0.36), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(254, 149, 28, 0.22), transparent 22%),
    linear-gradient(135deg, #010d35 0%, #06296a 52%, #0075ff 128%);
}

.coaching-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 132px;
  z-index: -1;
  background: #f8fbff;
  clip-path: polygon(0 62%, 36% 28%, 100% 58%, 100% 100%, 0 100%);
}

.coaching-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.hero-content {
  max-width: 640px;
  opacity: 0;
  transform: translateY(34px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.15s;
}

.hero-kicker,
.section-kicker,
.coach-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 9px 15px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  line-height: 0.98;
  font-weight: 900;
}

.hero-subtitle {
  margin: 24px 0 0;
  max-width: 590px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 18px;
  color: #fff;
  background: var(--orange);
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 18px 38px rgba(254, 149, 28, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-btn:hover {
  color: #fff;
  background: #ff8400;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(254, 149, 28, 0.38);
}

.coaching-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 16px;
  max-width: 560px;
  margin-left: auto;
}

.board-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, background 0.35s ease;
}

.board-card-main {
  grid-row: span 2;
  min-height: 396px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(0, 117, 255, 0.1), rgba(1, 13, 53, 0.7)),
    url("Imagenes/Saenz.jpg");
  background-size: cover;
  background-position: center;
}

.board-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.16);
}

.board-card span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.board-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  font-weight: 900;
}

.board-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.coaches-panel {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 117, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-kicker {
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  color: var(--blue);
  background: #e7f1ff;
}

.section-heading h2,
.comments-section h2 {
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 900;
}

.section-heading p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.coach-card {
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.78);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.coach-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  z-index: 2;
}

.coach-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 90px rgba(1, 13, 53, 0.19);
}

.coach-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--navy);
}

.coach-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(1, 13, 53, 0.58) 100%),
    linear-gradient(90deg, rgba(0, 117, 255, 0.14), transparent 58%);
  pointer-events: none;
}

.coach-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.coach-card:hover .coach-img {
  transform: scale(1.08);
}

.rating-box {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.rating-display {
  color: var(--orange);
  font-weight: 900;
  font-size: 0.95rem;
  white-space: nowrap;
}

.vote-count {
  color: #647084;
  font-size: 0.82rem;
  font-weight: 700;
}

.stars {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.stars i {
  color: #c8d0dc;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.stars i.active,
.stars i.hovered,
.stars i:hover {
  color: var(--orange);
}

.stars i:hover {
  transform: scale(1.2);
}

.coach-copy {
  padding: 28px;
  text-align: left;
}

.coach-kicker {
  padding: 7px 11px;
  margin-bottom: 14px;
  font-size: 0.68rem;
  color: var(--navy);
  background: var(--blue-soft);
}

.coach-copy h5 {
  margin: 0;
  color: var(--navy);
  font-size: 1.65rem;
  font-weight: 900;
}

.coach-role {
  margin: 7px 0 14px;
  color: var(--blue);
  font-weight: 850;
  line-height: 1.35;
}

.coach-description {
  min-height: 78px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-btn-wrapper {
  margin-top: 24px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(0, 117, 255, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-contact:hover {
  color: #fff;
  background: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(254, 149, 28, 0.28);
}

.comments-section {
  background: #fff;
}

.comments-section .container {
  max-width: 920px;
}

.category-wrapper {
  margin: 0 0 16px;
}

.required-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comment-form-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  text-align: left;
}

.comment-form-top h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
}

.comment-form-top p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.category-pills {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.category-pill {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(1, 13, 53, 0.18);
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font-weight: 850;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  filter: grayscale(1);
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.category-pill:hover {
  color: #000;
  background: #f3f4f6;
  border-color: rgba(1, 13, 53, 0.32);
  transform: translateY(-2px);
}

.category-pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #005bd0);
  box-shadow: 0 12px 24px rgba(0, 117, 255, 0.24);
  filter: grayscale(0);
}

.category-feedback {
  min-height: 22px;
  margin: 10px 0 0;
  color: #7a879d;
  font-weight: 750;
  text-align: left;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.category-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.category-wrapper.needs-choice .category-pills {
  animation: choicePulse 0.7s ease;
}

.category-wrapper.needs-choice .category-feedback {
  color: #c76d00;
}

@keyframes choicePulse {
  0%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(-4px);
  }

  70% {
    transform: translateY(2px);
  }
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 44px;
  padding: 22px;
  border-radius: 26px;
  background: #f8fbff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(1, 13, 53, 0.08);
}

.comment-form textarea {
  width: 100%;
  min-height: 118px;
  padding: 16px 18px;
  resize: vertical;
  border: 1px solid rgba(7, 28, 78, 0.14);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.comment-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 117, 255, 0.1);
}

.comment-form button:not(.category-pill),
#publishBtn {
  align-self: flex-end;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
  transition: transform 0.25s ease, background 0.25s ease;
}

.comment-form button:not(.category-pill):hover,
#publishBtn:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.comment-form .category-pill {
  align-self: auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(1, 13, 53, 0.18);
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  filter: grayscale(1);
}

.comment-form .category-pill:hover {
  color: #000;
  background: #f3f4f6;
  border-color: rgba(1, 13, 53, 0.32);
  transform: translateY(-2px);
}

.comment-form .category-pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #005bd0);
  box-shadow: 0 12px 24px rgba(0, 117, 255, 0.24);
  filter: grayscale(0);
}

.comment-card {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(1, 13, 53, 0.07);
  animation: fadeUp 0.45s ease;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-author {
  color: var(--navy);
  font-weight: 850;
}

.comment-date {
  color: #8b97ab;
  font-size: 0.78rem;
}

.comment-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.comment-text {
  margin: 0;
  color: #44516b;
  line-height: 1.7;
}

.comment-delete {
  margin-left: 8px;
  padding: 0;
  border: 0;
  color: #ef4444;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

#no-comments {
  padding: 34px 0;
  text-align: center;
  color: #8b97ab;
}

#auth-overlay {
  backdrop-filter: blur(6px);
}

.auth-box {
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(1, 13, 53, 0.24);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 82px;
  }

  .back-to-coaching-btn {
    left: 16px;
    bottom: 16px;
  }

  .coaching-hero {
    min-height: auto;
    padding: 84px 0 132px;
  }

  .coaching-board {
    margin: 16px 0 0;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 76px 0;
  }

  .coaching-hero {
    padding: 64px 0 118px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .coaching-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .board-card,
  .board-card-main {
    min-height: 132px;
    padding: 16px 12px;
    grid-row: auto;
  }

  .board-card p {
    display: none;
  }

  .board-card span {
    margin-bottom: 9px;
    font-size: 0.68rem;
  }

  .board-card strong {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .coach-media,
  .coach-img {
    min-height: 330px;
  }

  .rating-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .coach-copy {
    padding: 24px;
  }

  .coach-description {
    min-height: auto;
  }

  .comment-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-form-top {
    flex-direction: column;
    gap: 8px;
  }

  .category-pills {
    justify-content: flex-start;
    gap: 8px;
    padding: 2px 0 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    flex: 0 0 auto;
    font-size: 0.84rem;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
