:root {
  --ink: #337AB7;
  --textTitle: #193F6E;
  --paper: white;
  --sky: #7abee6;
  --morning: #7abee6;
  --honey: #3E80C2;
  --night: #193F6E;
  --white: #ffffff;

  --line-soft: rgba(25, 63, 110, 0.15);
  --line-strong: rgba(25, 63, 110, 0.35);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--textTitle);
}

h1 {
  font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw + 1rem, 2.5rem);
}

.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 480px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey);
  display: inline-block;
}

.eyebrow--center {
  justify-content: center;
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--textTitle);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-secundario {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.flecha-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}



.btn-primary:hover {
  background: #122e54;
  cursor: pointer;
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    transition: none;
  }
}

/* ===== Ribbon ===== */

.ribbon {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 58px;
  top: -14px;
  left: 36px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.ribbon--honey {
  background: var(--honey);
}

.ribbon--sky {
  background: var(--sky);
}

.ribbon--ink {
  width: 20px;
  height: 42px;
  top: -10px;
  left: 26px;
  background: var(--night);
}

/* ===== Navbar ===== */

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "links logo buttons";
  align-items: center;
  width: 80%;
}

.navbar-toggle {
  display: none;
  grid-area: toggle;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.navbar-toggle:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.navbar-icon-close {
  display: none;
}

.navbar.open .navbar-icon-open {
  display: none;
}

.navbar.open .navbar-icon-close {
  display: block;
}

.linkContainer {
  display: flex;
  grid-area: links;
  padding-top: 20px;
  justify-self: start;
}

.linkContainer a {
  text-decoration: none;
  color: black;
}

.navbar ul {
  list-style: none;
}

.navbarImgContainer {
  width: 64px;
  height: 64px;
  grid-area: logo;
  justify-self: center;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.navbarButtonContainer {
  grid-area: buttons;
  justify-self: end;
}

/* ===== Hero ===== */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}

.hero-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 0 32px;
}

.hero-details i {
  color: var(--honey);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
}

.hero-art svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-art video {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* ===== Features ===== */

.features {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 90px;
}

.features-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.features-art svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.feature-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-list i {
  font-size: 1.3rem;
  color: var(--sky);
  margin-top: 4px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.feature-list h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.feature-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 380px;
}

/* ===== Testimonios ===== */

.testimonials {
  width: 100%;
  background: var(--ink);
  padding: 90px 24px;
  margin-top: 20px;
}

.testimonials-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.testimonials-head h2 {
  color: var(--white);
}

.testimonials-head .eyebrow {
  color: var(--night);
}

.testimonials-head .eyebrow-dot {
  background: var(--sky);
}

.testimonials-head .lead {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto;
  max-width: 480px;
}

.testimonial-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  position: relative;
  background: var(--paper);
  border-radius: 16px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  color: var(--sky);
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: block;
}

.testimonial-card p {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
}

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

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--ink);
}

.avatar--honey {
  background: var(--honey);
}

.avatar--sky {
  background: var(--sky);
}

.testimonial-author div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.testimonial-author strong {
  font-size: 0.92rem;
  color: var(--night);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: rgba(33, 23, 21, 0.6);
}

/* ===== Talleres ===== */

.talleres-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}

.talleres-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.talleres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.taller-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: visible;
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 24px -18px rgba(25, 63, 110, 0.45);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.taller-card-media {
  aspect-ratio: 4 / 3;
  margin: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 27px,
    var(--line-soft) 28px
  );
  overflow: hidden;
  border-radius: 4px;
}

.taller-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.taller-card-media i {
  font-size: 2.5rem;
  color: var(--line-strong);
}

.taller-card-body {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.taller-card-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  border-top: 1.5px dashed var(--line-strong);
}

.taller-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--textTitle);
}

.taller-card-body .taller-card-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
}

.taller-card-body .btn-primary {
  margin-top: auto;
  width: 100%;
}

.taller-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

.taller-meta i {
  color: var(--honey);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.taller-meta strong {
  font-family: var(--font-mono);
  color: var(--textTitle);
}

.badge {
  position: absolute;
  top: -14px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  box-shadow: 0 1px 3px rgba(25, 63, 110, 0.2);
}

.badge i {
  font-size: 0.8em;
}

.badge--morning {
  background: var(--morning);
  color: var(--white);
}

.badge--honey {
  background: var(--honey);
  color: var(--white);
}

.badge--honey-contrast {
  background: var(--honey);
  color: var(--white);
}

.badge--sky {
  background: var(--sky);
  color: var(--ink);
}

.badge--night {
  background: var(--night);
  color: var(--white);
}

.empty-state {
  text-align: center;
  padding: 70px 24px;
  max-width: 460px;
  margin: 0 auto;
}

.empty-state i {
  font-size: 2.4rem;
  color: var(--sky);
  margin-bottom: 16px;
  display: block;
}

/* ---------- Formulario y alerta dentro de la card ---------- */

.taller-card .alert {
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.taller-card .alert-info {
  background: rgba(25, 63, 110, 0.08);
  color: var(--night);
  border: 1px solid rgba(25, 63, 110, 0.2);
}

.taller-card form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}

.taller-card .form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.taller-card .form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
}

.taller-card .form-control:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(62, 128, 194, 0.18);
}

.taller-card .btn,
.taller-card .btn-send,
.taller-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.taller-card form a.btn-send {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.taller-card form a.btn-send:hover {
  background: rgba(62, 128, 194, 0.1);
  color: var(--honey);
  border-color: var(--honey);
}

/* ===== Formulario de Inscripcion ===== */

main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-page {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 20px;
}

.form-container {
  width: 100%;
  max-width: 700px;
}

.header {
  margin-bottom: 30px;
}

.subtitle {
  color: var(--ink);
}

.card-form {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(33, 23, 21, 0.08);
  overflow: hidden;
}

.card-header {
  padding: 25px;
  background: #b8d9f8;
  border-bottom: 1px solid rgba(33, 23, 21, 0.08);
}

.card-header h2 {
  font-family: "Montserrat", sans-serif;
  margin: 0;
}

.card-body {
  padding: 30px;
}

.form-control,
.form-select {
  border-radius: 10px;
  padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 0.2rem rgba(122, 190, 230, 0.25);
}

.btn-send {
  background: var(--textTitle);
  color: white;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  border: none;
}

.btn-send:hover {
  background: #122e54;
  color: white;
}

.loggedInContainer{
  display: flex;
  flex-direction: row;
  gap: 5px;
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .navbar {
    width: 100%;
    padding: 16px 20px 0;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "toggle logo spacer"
      "links links links"
      "buttons buttons buttons";
  }

  .navbar-toggle {
    display: block;
    justify-self: start;
    align-self: center;
    padding: 0;
  }

  .navbarImgContainer {
    width: 56px;
    height: 56px;
  }

  .linkContainer,
  .navbarButtonContainer {
    display: none;
  }

  .navbar.open .linkContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 18px 0 12px;
    justify-self: stretch;
    border-bottom: 1px solid #eef1f5;
  }

  .navbar.open .linkContainer ul {
    margin: 0;
    padding: 0;
  }

  .navbar.open .navbarButtonContainer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 0 20px;
    justify-self: stretch;
  }

  .navbar.open .navbarButtonContainer .btn-primary,
  .navbar.open .navbarButtonContainer .btn-secundario {
    justify-content: center;
    width: 100%;
  }

  .navbar.open .navbarButtonContainer a:first-child {
    text-align: center;
  }

  .hero,
  .features {
    grid-template-columns: 1fr;
    padding-top: 50px;
    padding-bottom: 60px;
    gap: 36px;
  }

  .features-art {
    order: 2;
  }

  .features-text {
    order: 1;
  }

  .lead {
    max-width: 100%;
  }

  .testimonials {
    padding: 60px 24px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Carrusel de imágenes (Visitas Escolares) ===== */

.features-carousel {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(25, 63, 110, 0.35);
}

.features-carousel .carousel-item {
  aspect-ratio: 4 / 3;
  background: var(--line-soft);
}

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

.features-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: 0;
  margin: 0 5px;
}

.features-carousel .carousel-indicators .active {
  background-color: var(--white);
}

.features-carousel .carousel-control-prev-icon,
.features-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 1px 2px rgba(25, 63, 110, 0.4));
}

.features-carousel .carousel-item img {
  cursor: pointer;
}

/* ===== Modal del carrusel ===== */

.modal-carrusel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 26, 44, 0.94);
  backdrop-filter: blur(4px);
  padding: 24px;
}

.modal-carrusel.active {
  display: flex;
}

.modal-carrusel-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-carrusel-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-carrusel-counter {
  color: var(--white);
  margin: 14px 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
  font-family: var(--font-mono);
}

.modal-carrusel-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal-carrusel-close:hover,
.modal-carrusel-close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
}

.modal-carrusel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color 0.2s ease;
  z-index: 10;
}

.modal-carrusel-nav:hover,
.modal-carrusel-nav:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.modal-carrusel-prev {
  left: 24px;
}

.modal-carrusel-next {
  right: 24px;
}

@media (max-width: 768px) {
  .modal-carrusel {
    padding: 16px;
  }

  .modal-carrusel-content {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
  }

  .modal-carrusel-content img {
    max-height: 70vh;
    border-radius: 8px;
    width: 100%;
  }

  .modal-carrusel-nav {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .modal-carrusel-prev {
    left: 16px;
  }

  .modal-carrusel-next {
    right: 16px;
  }

  .modal-carrusel-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 600px) {
  .talleres-page {
    padding: 50px 20px 80px;
  }
}


