:root {
  
  
 
  
  
  
  
  --transition: 0.25s cubic-bezier(.4,1,.4,1.1);
  --max-width: 1200px;
}
* { box-sizing: border-box; margin:0px; padding:0px}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8f8f8;
  color: #1a1a1a;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #fff;
  box-shadow: 0 1.5px 8px rgba(0,0,0,0.03);
  padding: 1.5rem;
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: .5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* HAMBURGUESA BASE */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 32px;
  height: 32px;
  z-index: 22;
  margin-left: 1rem;
}

.hamburger span {
  height: 4px;
  width: 100%;
  background: #f53658;
  margin-bottom: 6px;
  border-radius: 4px;
  display: block;
  transition: 0.3s;
}



/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    height: 100vh;
    width: 220px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4.5rem 1.2rem 1.2rem 1.2rem;
    gap: 1.3rem;
    box-shadow: -2px 0 18px rgba(0,0,0,0.07);
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(.7,.3,.3,1.1);
    z-index: 21;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    width: 100%;
    display: block;
    padding: 0.6em 0.4em;
    font-size: 1.18rem;
    border-radius: 7px;
  }
  .navbar-container {
    position: relative;
  }
  .hamburger {
    display: flex;
  }
  /* Mostrar menú cuando el checkbox está activado */
  .nav-toggle:checked ~ .nav-links {
    transform: translateX(0);
  }
  /* Animación hamburguesa */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(14px);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-14px);
  }
  /* Oculta menú normal */
  .nav-links {
    display: flex;
  }
}

/* Oculta menú normal en móvil */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Siempre muestra menú en desktop */
@media (min-width: 769px) {
  .hamburger, .nav-toggle {
    display: none !important;
  }
  .nav-links {
    position: static;
    flex-direction: row;
    height: auto;
    width: auto;
    background: none;
    box-shadow: none;
    padding: 0;
    transform: none !important;
    gap: 1.6rem;
    border-radius: 0;
    z-index: auto;
  }
}
.logo {
 font-size: 1.2rem;
    font-weight: 600;
    color: #f53658;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.logo img{height:55px; width:auto}

.logo-grande{display:flex; align-items:center; justify-content:center;}

.logo-grande img{width: 320px;
    margin: 30px;}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  transition: color 0.25s cubic-bezier(.4,1,.4,1.1);
  font-size: 1rem;
  padding: 0.38em 0.6em;
  border-radius: 8px;
}
.nav-links a:hover, .nav-links .nav-cta {
  color: #fff;
  background: #f53658;
}
.nav-links .nav-cta {
  
  display: inline-flex;
  gap: 0.4em;
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 3.5rem 1rem 3rem 1rem;
  background: url('https://images.pexels.com/photos/21365434/pexels-photo-21365434.jpeg?auto=compress&w=1200&q=80') center center/cover no-repeat;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 4px 16px rgba(72, 72, 72, 0.07), 0 1.5px 6px rgba(72,72,72,0.03);
  overflow: hidden;
  background-position-y: 80%;
}

.hero-bg {
  /* Degradado con color y opacidad, encima de la imagen */
  background: linear-gradient(180deg, rgb(0 0 0 / 45%) 30%, rgba(0, 166, 153, 0.45) 100%);
  opacity: 1;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Opcional: para que el texto se destaque mejor */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.7rem 0;
  color: #ffffff;
}
.hero h1 span {
  color: #dcdcdc;
  font-weight: 700;
  font-size: 2.1rem;
}
.hero p {
  font-size: 1.0rem;
  margin-bottom: 2rem;
  color: #ffffff;
}
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: #f53658;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.95em 2.2em;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 16px rgba(255, 90, 95, 0.15);
  cursor: pointer;
  transition: background 0.25s cubic-bezier(.4,1,.4,1.1), box-shadow 0.25s cubic-bezier(.4,1,.4,1.1);
  text-decoration: none;
}
.btn-main:hover { background: #d32f4c; box-shadow: 0 8px 24px rgba(233, 78, 82, 0.19); }

/* SECCIONES */
.section {
  width: 100%;
  max-width: 1200px;
  margin: 3.2rem auto 0 auto;
  padding: 2.2rem 1.4rem 2.2rem 1.4rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(72, 72, 72, 0.07), 0 1.5px 6px rgba(72,72,72,0.03);
}
.section > h2 {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-size: 2rem;
  font-weight: 700;
  color: #f53658;
  margin: 0 0 2.1rem 0;
  letter-spacing: 0.01em;
}

.gracias {
  width: 100%;
  max-width: 1200px;
  margin: 3.2rem auto 0 auto;
  padding: 2.2rem 1.4rem 2.2rem 1.4rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(72, 72, 72, 0.07), 0 1.5px 6px rgba(72,72,72,0.03);
  text-align: center;
}
.gracias h2 {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-size: 2rem;
  font-weight: 700;
  color: #f53658;
  margin: 0 0 2.1rem 0;
  letter-spacing: 0.01em;
}

/* COMO SUMARSE */
.cards-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2.6rem;
  justify-content: center;
  align-content: space-around;
}
.step-card {
  background: #e6ebef;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  padding: 2rem 1.4rem;
  text-align: center;
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.25s cubic-bezier(.4,1,.4,1.1), transform 0.25s cubic-bezier(.4,1,.4,1.1);
}
.step-card:hover {
  box-shadow: 0 8px 28px rgba(72,72,72,0.13);
  transform: translateY(-5px) scale(1.04);
}
.step-icon {
  background: #00A699;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.5rem 0;
  color: #d32f4c;
}
.step-card p {
  color: #6a717b;
  font-size: 1.04rem;
  margin: 0;
}

/* BENEFICIOS */
.cards-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.benefit-card {
  border: 1px solid #dddddd;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  text-align: center;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  transition: box-shadow 0.25s cubic-bezier(.4,1,.4,1.1), transform 0.25s cubic-bezier(.4,1,.4,1.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.benefit-card:hover {
  box-shadow: 0 8px 28px rgba(0,166,153,0.09);
  transform: translateY(-3px) scale(1.02);
}
.benefit-card i {
  font-size: 2.4rem;
  margin-bottom: 1.1em;
  color: #00A699;
}
.benefit-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
  color: #d32f4c;
}
.benefit-card p {
  color: #6a717b;
  font-size: 1.03rem;
  margin: 0;
}

/* TESTIMONIOS */
.testimonials-slider {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.testimonial-card {
  flex: 1 1 270px;
  min-width: 250px;
  max-width: 400px;
  background: #e6ebef;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  padding: 1.8rem 1.3rem 1.2rem 1.3rem;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.25s cubic-bezier(.4,1,.4,1.1), opacity .6s;
  opacity: 1;
}
.testimonial-card:not(:first-child) { opacity: 0; }
.testimonial-text {
  font-style: italic;
  font-size: 1.08rem;
  color: #1a1a1a;
  margin-bottom: 1.3em;
  text-align: center;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: #d32f4c;
  font-weight: 700;
  font-size: 1.05rem;
}
.testimonial-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #f53658;
}

/* GALERÍA */
.gallery-section {
  background: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px,1fr));
  gap: 2.1rem;
  margin-top: 1.5rem;
}
.gallery-card {
  background: #e6ebef;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 0.25s cubic-bezier(.4,1,.4,1.1), transform 0.25s cubic-bezier(.4,1,.4,1.1);
}
.gallery-card:hover { box-shadow: 0 8px 28px rgba(255,90,95,0.08); transform: scale(1.03); cursor: pointer;}
.gallery-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.gallery-info {
  padding: 1em 1.1em;
  text-align: left;
}
.gallery-info h4 {
  font-size: 1.1rem;
  color: #d32f4c;
  font-weight: 700;
  margin: 0 0 0.2em 0;
}
.gallery-info span {
  font-size: 0.98rem;
  color: #6a717b;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  margin-top: 1.3em;
}
.faq-list details {
  background: #e6ebef;
  border-radius: 10px;
  padding: 1rem 1rem 1rem 1.25rem;
  color: #d32f4c;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.25s cubic-bezier(.4,1,.4,1.1);
  box-shadow: 0 1.5px 5px rgba(0,0,0,0.03);
}
.faq-list details[open] {
  background: #f8fafc;
  color: #00A699;
  box-shadow: 0 6px 18px rgba(0,166,153,0.10);
}
.faq-list summary {
  font-size: 1.07rem;
  outline: none;
}
.faq-list div {
  color: #1a1a1a;
  font-weight: 400;
  font-size: 1rem;
  margin-top: .7em;
  padding-left: .5em;
}

/* PREINSCRIPCIÓN */
.pre-registration {
  margin-bottom: 4rem;
}
.pre-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #e6ebef;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  padding: 2rem 1.5rem 1.7rem 1.5rem;
}
.pre-form input, .pre-form textarea {
  border: 1.5px solid #e2e8f0;
  font-size: 1.04rem;
  padding: 0.95em 1.1em;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.25s cubic-bezier(.4,1,.4,1.1), box-shadow 0.25s cubic-bezier(.4,1,.4,1.1);
  font-family: 'Roboto', sans-serif;
  color: #1a1a1a;
}
.pre-form input:focus, .pre-form textarea:focus {
  border-color: #f53658;
  outline: none;
  box-shadow: 0 0 6px rgba(255, 90, 95, 0.13);
}
.pre-form textarea {
  min-height: 140px;
  resize: vertical;
}
.pre-form button[type="submit"] {
  margin-top: 0.3rem;
  align-self: flex-end;
}

/* Contador */
.countdown {
  font-weight: 700;
  font-size: 1.09rem;
  color: #f53658;
  margin-top: 1.2rem;
  text-align: center;
  letter-spacing: 0.03em;
  background: none;
}

/* FOOTER */
footer {
  background: #fff;
  color: #6a717b;
  text-align: center;
  padding: 2.1rem 1rem 1.4rem 1rem;
  font-size: 1.03rem;
  font-weight: 500;
  box-shadow: 0 -1.5px 12px rgba(0,0,0,0.03);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  margin-top: auto;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: .7em 1.9em;
  justify-content: center;
  align-items: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .section { padding: 1.7rem 0.6rem; margin-top: 2.1rem;}
  .gallery-grid, .cards-benefits { grid-template-columns: repeat(2, 1fr); }
  .cards-steps { flex-direction: column; gap: 1.3rem;}
  .testimonials-slider { flex-direction: column; gap: 0.8rem;}
}

@media (max-width: 700px) {
  .navbar-container { padding: .5rem 1rem;}
  .section { padding: 1.2rem 0.3rem;}
  .hero { padding: 2.1rem 0.2rem;}
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-benefits { grid-template-columns: 1fr; }
  .step-card, .benefit-card, .gallery-card, .testimonial-card { max-width: 99vw;}
   .nav-links { gap: 0.2rem; padding-top: 60px!important;}
}

@media (max-width: 500px) {
  .nav-links { gap: 0.2rem; padding-top: 60px!important;}
  .logo { font-size: 1rem;}
  .hero h1 { font-size: 1.37rem;}
  .hero h1 span { font-size: 1.08rem;}
  .section > h2 { font-size: 1.13rem;}
  .footer-content { flex-direction: column; gap: 0.3em;}
}

.gallery-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,32,36,0.19);
  z-index: 1010;
  transition: background 0.25s;
}
.gallery-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  width: 100%;
  height: 85vh;
  max-height: 640px;
  background: var(--color-white, #fff);
  box-shadow: 0 -3px 32px rgba(30,32,36,0.18);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  z-index: 1020;
  transition: bottom 0.36s cubic-bezier(.7,.3,.4,1.02);
  opacity: 1;
  pointer-events: none;
  outline: none;
  padding-top: 30px;
}
.gallery-modal.open {
  bottom: 0;
  pointer-events: auto;
}
.gallery-modal-backdrop.open {
  display: block;
}
.gallery-modal-close {
  background: none;
  border: none;
  color: #555;
  font-size: 2rem;
  position: absolute;
  top: 18px;
  right: 26px;
  z-index: 2;
  cursor: pointer;
  transition: color 0.18s;
}
.gallery-modal-close:hover {
  color: var(--color-main, #FF5A5F);
}
.gallery-modal-scrollable {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 46px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-modal-header {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1.1rem auto;
  padding: 0 1.2rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.4rem;
}
.gallery-modal-header h4 {
  font-size: 2rem;
  color: var(--color-main, #FF5A5F);
  margin: 0 0 0.5em 0;
  font-weight: 700;
}
.gallery-modal-header span {
  color: var(--color-light, #767e8a);
  font-size: 1.1rem;
  font-weight: 500;
}
.gallery-modal-gallery {
  display: flex;
  gap: 1em;
  width: 100%;
  max-width: 480px;
  padding: 0 1.2rem 0.7em 1.2rem;
  margin-bottom: 0.5em;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  min-height: 190px !important;
}
.gallery-modal-gallery img {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30,32,36,0.07);
  scroll-snap-align: start;
  flex-shrink: 0;
  background: #faf7f5;
}
.gallery-modal-description {
  width: 100%;
  max-width: 480px;
  color: var(--color-text, #232323);
  font-size: 1.15rem;
  line-height: 1.6;
  padding: 0 1.2rem;
  margin-bottom: 1em;
}
.gallery-modal-contact {
  width: 100%;
  max-width: 480px;
  padding: 0 1.2rem;
  font-size: 1.05rem;
  color: var(--color-light, #799383);
  margin-bottom: 1.2em;
}
.gallery-modal-contact a, .gallery-modal-contact span {
  display: block;
  color: var(--color-main, #13B67B);
  font-weight: 700;
  margin: 0.1em 0;
  text-decoration: none;
  word-break: break-all;
}
.gallery-modal-action {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
  padding: 0 1.2rem;
  margin-bottom: 1em;
}
.gallery-modal-action .btn-main {
  font-size: 1.08rem;
  padding: 0.8em 2.1em;
}
@media (max-width: 600px) {
  .gallery-modal-header,
  .gallery-modal-description,
  .gallery-modal-contact,
  .gallery-modal-action {
    max-width: 98vw;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  .gallery-modal-gallery {
    max-width: 98vw;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  .gallery-modal-gallery img {
    width: 130px;
    height: 160px;
  }
}

/* overlay */
    .modal-overlay{
      position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
      background:rgba(0,0,0,0.6);backdrop-filter:blur(6px);
      z-index:9999;opacity:0;visibility:hidden;transition:opacity .5s;
    }
    .modal-overlay.active{opacity:1;visibility:visible}

    .modal-card{
      width:auto;max-width:800px;background:#fff;border-radius:12px;
      padding:1.2rem;box-shadow:0 8px 25px rgba(0,0,0,.5);
    }
    .modal-header{display:flex;justify-content:space-between;align-items:center}
    .modal-title{font-weight:700;font-size:1.2rem}
    .close-btn{cursor:pointer;font-size:1.2rem;border:none;background:none}
    .modal-actions{margin-top:1rem;display:flex;gap:.5rem}
    .btn{padding:.6rem 1rem;border-radius:8px;cursor:pointer;border:none;font-weight:600}
    .btn-primary{background:#e03b3b;color:#fff}
    .btn-ghost{background:#eee}
    .modal-card img{max-height: 80vh; max-width: 90vw;}
