/* ==========================================================================
   HERO SECTION - TITULOPRO
   ========================================================================== */
.titulopro {
  background-color: #f9f6f1;
  padding: 40px 0;
}

.titulopro-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 60px;
  padding: 0px 50px;
}

.titulopro-text {
  flex: 1;
  min-width: 650px;
}

.etiqueta {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #55c9cc;
  margin-bottom: 0px;
  text-transform: uppercase;
  padding-left: 20px;
}

.titulopro-text h1 {
  font-size: 3.8rem;
  font-weight: 400;
  color: #444e56;
  line-height: 1.2;
}

.titulopro-text h1 span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #55c9cc;
  font-weight: 400;
  font-size: 90px;
  display: inline-block;
  margin-top: 5px;
}

.titulopro-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.titulopro-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0px 20px 40px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* ==========================================================================
   SPACES SHOWCASE SECTION - WIDER GLASS EFFECT CARDS
   ========================================================================== */
.muestra-espacios {
  padding: 30px 20px 0px;
  margin-bottom: 40px;
}

.muestra-espacios h2 {
  margin: 30px 0;
  font-size: 3.8rem;
  font-weight: 400;
  color: #444e56; 
  text-align: center;
}

/* Grid container - wider cards */
.espacios-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1800px;
  margin: 0px auto;
}

.tipo-de-espacio {
  flex: 1;
  min-width: 380px;
  max-width: 550px;
  height: 640px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

/* Add background images for each card */
.tipo-de-espacio:nth-child(1) {
  background-image: url('/images/merlo-park-2.webp');
  background-size: cover;
  background-position: center;
}

.tipo-de-espacio:nth-child(2) {
  background-image: url('/images/stanford-2.webp');
  background-size: cover;
  background-position: center;
}

.tipo-de-espacio:nth-child(3) {
  background-image: url('/images/grabacion1.webp');
  background-size: cover;
  background-position: center;
}

/* Glass effect overlay */
.tipo-de-espacio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 0;
  transition: all 0.3s ease;
}

/* Reduce blur on hover */
.tipo-de-espacio:hover::before {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.1);
}

/* Add darker overlay for better text readability */
.tipo-de-espacio::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.7));
  z-index: 0;
  transition: all 0.3s ease;
}

.tipo-de-espacio:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Position all text content above the background layers */
.tipo-de-espacio h3, 
.tipo-de-espacio p, 
.tipo-de-espacio .features-list,
.tipo-de-espacio .features-list li {
  position: relative;
  z-index: 2;
}

.tipo-de-espacio h3 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  padding: 30px 30px 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tipo-de-espacio p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  padding: 0 30px;
  font-weight: 300;
  margin-bottom: 25px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-salas {
    display: inline-block;
    background-color: #444e56;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 600;

    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-salas {
  display: block;                 /* block so margin auto works */
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;             /* shrink to content width */
  margin: 16px auto 0;            /* centers horizontally */
  text-align: center;
}

.ver-salas {
  margin-top: 40px;
}

.features-list {
  list-style: none;
  padding: 20px 30px 30px;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.features-list li {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  color: #ffffff;
  padding: 8px 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.features-list img {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
  .espacios-container {
    justify-content: center;
  }
  
  .tipo-de-espacio {
    flex: 0 0 auto;
    width: 45%;
    min-width: 350px;
  }
}

@media screen and (max-width: 800px) {
  .espacios-container {
    flex-direction: column;
    align-items: center;
  }
  
  .tipo-de-espacio {
    width: 90%;
    max-width: 500px;
  }
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.beneficios {
  display: flex;
  justify-content: space-around;
  background-color: #ffa500;
  color: #ffffff;
  padding: 30px 10px;
}

.beneficios > div {
  flex: 1;
  text-align: center;
  padding: 0 25px;
  position: relative;
}

.beneficios > div:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  border-right: 1px solid #ffffff;
}

.beneficios img {
  width: 300px;
  height: 150px;
  margin-bottom: 20px;
}

.beneficios h3 {
  font-size: 1.4em;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 15px;
}

.beneficios p {
  font-size: 1em;
  line-height: 1.6;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   LOCATION SECTION
   ========================================================================== */
.ubicacion {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 80px;
}

.ubicacion h3 {
  margin: 0;
  font-size: 3.8rem;
  font-weight: 400;
  color: #444e56;
  line-height: 4rem;
}

.ubicacion h4 {
  color: #444e56;
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  word-wrap: break-word;
  margin-top: 20px;
}

.ubicacion p {
  color: #444e56;
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
}

.ubicacion iframe {
  box-shadow: 0 0 0 4px #55c9cc;
  border-radius: 10px;
}

.pin {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: flex-start;
  gap: 15px;
}

.pin img {
  width: 40px;
  height: 50px;
  color: #55c9cc;
}

.pin p {
  margin-top: 13px;
}

/* ==========================================================================
   MEMBERSHIP SECTION
   ========================================================================== */
.membresia {
  background-color: #55c9cc;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin: 50px;
  border-radius: 10px;
}

.titulo-membresia {
  max-width: 50%;
  padding: 40px;
}

.lista-membresia {
  flex-direction: column;
  align-items: left;
}

.titulo-membresia .etiqueta {
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 20px;
  margin-left: 30px;
  text-transform: uppercase;
}

.titulo-membresia h3 {
  font-size: 3.8rem;
  font-weight: 400;
  color: #444e56; 
  text-align: center;
  margin-bottom: 0;
  line-height: 5rem;
}

.titulo-membresia h3 span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #ffffff;
  font-weight: 400;
  font-size: 90px;
  display: inline-block;
}

.titulo-membresia h4 {
  color: #444e56;
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  word-wrap: break-word;
  margin: 40px;
}

#btn-blanco {
  background-color: #ffffff;
  color: #444e56;
  align-self: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#btn-blanco:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.lista-membresia {
  list-style: none;
  min-width: 40%;
  line-height: 40px;
  text-align: left;
  padding: 40px;
}

.lista-membresia h5 {
  color: #444e56;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  margin: 0 0 20px 0;
}

.lista-membresia p {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.6;
  margin-top: 0;
}

.lista-membresia li:hover {
  border-left: 3px solid #444e56;
  padding-left: 20px;
}

.lista-membresia li { 
  transition: border-left 0.3s ease;
}

/* ==========================================================================
   ROOMS/SALAS SECTION STYLES
   ========================================================================== */
.salas {
  display: flex;
  flex-direction: column; 
}

.salas h2 {
  margin-top: 60px;
  font-size: 3.8rem;
  font-weight: 400;
  color: #444e56; 
  text-align: center;
  margin-bottom: 0;
}

.sala {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px;
  gap: 40px;
  margin-right: 20px;
  margin-left: 20px;
}

.texto-sala {
  max-width: 40%;
}

.texto-sala h3 {
  color: #444e56;
  font-size: 1.6rem;
  font-weight: 900;
}

.texto-sala h4 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #55c9cc;
  margin-top: 10px;
  margin-bottom: 0px;
  margin-left: 40px;
}

.lista-caracteristicas {
  margin-top: 0;
  list-style: none;
}

.lista-caracteristicas li {
  padding: 3px;
}

.lista-caracteristicas img {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.sala:nth-child(even) {
  flex-direction: row-reverse;
}

.collage {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 15px;
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Collage layout variations */
.img-collage-1 {
  grid-row: span 2;
}

.img-collage-4 {
  grid-column: span 2;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Title/Hero Section */
  .titulopro-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    padding: 30px 20px;
  }
  
  .titulopro-text {
    min-width: auto;
    width: 100%;
  }
  
  .titulopro-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .titulopro-text h1 span {
    font-size: 2.8rem;
    display: block; 
    margin-top: 0;
  }
  
  .etiqueta {
    padding-left: 0;
  }
  
  .titulopro-image {
    display: none;
  }
  
  /* Space Types - Responsive for horizontal cards */
  .tipo-de-espacio {
    flex-direction: column;
  }
  
  .espacio-info,
  .espacio-features {
    width: 100%;
    padding: 20px;
  }
  
  .espacio-features {
    border-left: none;
    border-top: 1px solid #eaeaea;
  }
  
  .muestra-espacios h2 {
    font-size: 2.5rem;
    margin: 30px 0;
  }
  
  /* Benefits Section */
  /* Benefits Section: tighter orange band but larger icons/typography for visual weight */
  .beneficios {
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* reduce overall vertical space */
    padding-bottom: 10px;
  }

  .beneficios > div {
    margin-bottom: 14px; /* smaller gap between items */
    padding-bottom: 10px;
  }

  .beneficios > div:not(:last-child)::after {
    display: none;
  }

  .beneficios > div:not(:last-child) {
    border-bottom: 1px solid #ffffff;
  }

  .beneficios > div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Make icons and headings slightly larger to avoid empty orange space feeling */
  .beneficios img {
    width: 220px;
    height: 110px;
    margin-bottom: 10px;
  }

  .beneficios h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .beneficios p {
    max-width: 260px;
    font-size: 1.02rem;
  }
  
  /* Location Section */
  .ubicacion {
    flex-direction: column;
    margin: 40px 20px;
    gap: 30px;
  }
  
  .ubicacion .texto-ubicacion {
    text-align: center;
  }
  
  .ubicacion .pin {
    justify-content: center;
  }
  
  .ubicacion h3 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .ubicacion iframe {
    width: 100%;
    height: 250px;
  }
  
  /* Membership Section */
  .membresia {
    flex-direction: column;
    margin: 40px 20px;
    padding: 30px 20px;
    gap: 40px;
  }
  
  .titulo-membresia,
  .lista-membresia {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
    padding: 0;
  }
  
  .titulo-membresia {
    text-align: center; 
  }
  
  .titulo-membresia h3 {
    font-size: 2.8rem;
    line-height: 1.2;
  }
  
  .titulo-membresia h3 span {
    font-size: 3rem;
  }
  
  .lista-membresia li:hover {
    border-left: none;
    padding-left: 0;
  }
  
  /* Salas/Rooms */
  .sala, 
  .sala:nth-child(even) {
    flex-direction: column;
    gap: 40px;
  }
  
  .texto-sala {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
  
  .collage {
    max-width: 100%;
    width: 100%;
  }
  
  .texto-sala h4 {
    margin-left: 0;
  }
}