:root {
  --purple: #6a2c9c;
  --purple-dark: #5a2586;
  --pink: #ec1e79;
  --pink-soft: #f5f5f5;
  --dark: #333333;
  --white: #ffffff;
  --text-light: #e5d7f0;
}

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

body {
  font-family: 'SN Pro', sans-serif;
  color: var(--dark);
  line-height: 1.5;
}

/* boton tipo píldora  */
.btn-pill {
  display: inline-block;
  background-color: var(--pink);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.btn-pill:hover {
  opacity: 0.85;
}

.logo-nav {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-footer {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}


.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* ==========================================================================
   Hero / sección principal
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  /* cambiar por viewheight en caso de ser necsario*/
  display: flex;
  flex-direction: column;
  background-color: var(--purple);
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(106, 44, 156, 0.5);
  z-index: 1;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  max-width: 600px;
  text-align: center;
}

.hero-text p {
  margin-left: auto;
  margin-right: auto;
}


/* navbar/content sobre el resto */
.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 60px;
}



.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.nav-cta {
  padding: 8px 18px;
  font-size: 12px;
}

/* menu movil */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}



/* ==========================================================================
   Sección Proyectos Disponibles
   ========================================================================== */

.projects {
  background: var(--white);
  padding: 60px 60px 90px;
  text-align: center;
}

.section-title {
  color: var(--pink);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 15px;
}

.section-subtitle {
  color: #666;
  font-size: 13px;
  max-width: 500px;
  margin: 0 auto 50px;
}

.cards {
  display: flex;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  flex: 1;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pink);
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Sección Agenda / Contacto
   ========================================================================== */
.contact {
  background: var(--pink);
  color: var(--white);
  padding: 60px;
  display: flex;
  gap: 50px;
  justify-content: center;
}

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

.contact-left h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-left p {
  font-size: 13px;
  margin-bottom: 30px;
  opacity: 0.95;
}


.contact-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}



/* Formulario */
.contact-right {
  flex: 1;
  max-width: 520px;
}

.form input,
.form textarea {
  width: 100%;
  border: none;
  border-radius: 25px;
  padding: 14px 22px;
  font-size: 17px;
  margin-bottom: 15px;
  font-family: inherit;
  outline: none;
}

.form textarea {
  border-radius: 20px;
  resize: vertical;
}

.form-note {
  margin-top: 0.75rem;
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.form-note:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.form-note--success {
  color: #7a9a3d;
}

.form-note--error {
  color: #d97070;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row input {
  flex: 1;
}

.btn-submit {
  background: var(--purple);
  float: right;
}

.form-alert {
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.form-alert--ok {
  background: #ffffff;
  color: #1a8a3a;
}

.form-alert--error {
  background: #ffffff;
  color: #c0182b;
}

/* ==========================================================================
   Sección Sobre Nosotros
   ========================================================================== */

.about {
  background: var(--white);
  padding: 70px 60px;
  text-align: center;
}

.logo-about {
  display: block;
  height: 90px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 40px;
}

.about-text {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.about-text strong {
  color: var(--pink);
}

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

.team-card {
  position: relative;

  .team-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.team-card:nth-child(1) {
  background: var(--pink);
}

.team-card:nth-child(2) {
  background: #f2994a;
}

.team-card:nth-child(3) {
  background: #4a90e2;
}

.team-card:nth-child(4) {
  background: #27ae60;
}

.team-card:nth-child(5) {
  background: var(--purple);
}

.team-card:nth-child(6) {
  background: #c2185b;
}

.team-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-card:hover .team-overlay,
.team-card:focus-within .team-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-name {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.team-role {
  color: var(--white);
  font-size: 13px;
  opacity: 0.9;
}

/* ==========================================================================
   Pie de página
   ========================================================================== */

.footer {
  background: var(--purple);
  color: var(--white);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
}

.footer-menu {
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  justify-content: center;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

/* Redes sociales */
.social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social a {
  color: var(--white);
  display: flex;
  align-items: center;
}

.social-icon {
  display: block;
  height: 26px;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 15px 60px;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.9;
}

/* ==========================================================================
   Páginas de proyecto
   ========================================================================== */

.navbar--light {
  background: var(--white);
}

.nav-menu--light a {
  color: #333;
}

.nav-menu--light .nav-cta {
  color: var(--white);
}

.hamburger--dark span {
  background: #333;
}

.project-hero {
  background-color: var(--purple);
  background-image: linear-gradient(rgba(106, 44, 156, 0.72), rgba(106, 44, 156, 0.72)), var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
  padding: 55px 30px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.project-hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 25px;
}

.project-hero--barrio-quinta {
  --hero-bg: url("../img/proyectos/bq/bq_larga.png");
}

.project-hero--santa-margarita {
  --hero-bg: url("../img/proyectos/sm/sm_larga.png");
}



.project-desc {
  display: flex;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px;
}

.project-desc-text {
  flex: 1;
}

.project-desc-text h2 {
  color: var(--pink);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.project-desc-photo {
  width: 350px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--dark);
  flex-shrink: 0;
}

/* Galería / carrusel */
.project-gallery {
  position: relative;
  padding: 20px 60px 50px;
  max-width: 1100px;
  margin: 0 auto;
}


.gallery-stage {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 25px;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* ancho de tarjeta de setea en JS */
.gallery-card {
  flex: 0 0 calc((100% - 75px) / 3);
  background: var(--pink);
  border-radius: 20px;
  min-height: 150px;
}

.gallery-photocard {
  flex: 0 0 calc((100% - 75px) / 3);
  background: var(--pink);
  border-radius: 20px;
  min-height: 150px;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-arrow {
  flex: 0 0 42px;
  height: 42px;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s ease;
}

.gallery-arrow span {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-top: -2px;
}

.gallery-arrow:hover {
  opacity: 0.85;
}

.gallery-arrow.is-hidden {
  visibility: hidden;
}

/* Puntos indicadores */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.5;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.dot--active {
  background: var(--purple);
  opacity: 1;
}

.cta-banner {
  background: var(--pink);
  color: var(--white);
  text-align: center;
  padding: 60px 30px;
}

.cta-banner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.3;
}

.cta-banner-btn {
  background: var(--purple);
}

/* ==========================================================================
   Responsive (tablet y móvil)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 30px;
    background: var(--purple-dark);
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    gap: 18px;
  }

  .nav-menu.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    padding: 20px 30px;
    position: relative;
  }

  /* Hero en columna */
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .hero-video {
    max-width: 100%;
  }

  /* Tarjetas en columna */
  .cards {
    flex-direction: column;
  }

  .projects,
  .about {
    padding: 50px 30px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .team-name {
    font-size: 16px;
  }

  .contact {
    flex-direction: column;
    padding: 50px 30px;
  }

  .contact-left,
  .contact-right {
    max-width: 100%;
  }

  .project-desc {
    flex-direction: column;
    padding: 50px 30px;
  }

  .gallery-card {
    flex: 0 0 100%;
  }

  .project-gallery {
    padding: 20px 30px 50px;
  }

  .footer-main {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 15px 30px;
  }
}