:root {
  --burdeos: #8B1E2D;
  --gris: #666666;
  --blanco: #ffffff;
  --rojo: #8B1E2D;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* CABECERA */
.cabecera {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background-color: var(--burdeos);
  color: var(--blanco);
  padding: 1rem 2rem;
  gap: 1rem;
}

/* COOKIES */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-family: 'Helvetica Neue', sans-serif;
}

.modal-content h3 {
  margin-bottom: 15px;
  color: #8B1E2D;
}

.modal-content p {
  margin-bottom: 20px;
  color: #333;
}

.botones button {
  background-color: #8B1E2D;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.botones a {
  display: block;
  margin-top: 15px;
  color: #8B1E2D;
  text-decoration: underline;
}

.logo img {
  height: 60px;
}

.menu {
  justify-self: center;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.menu a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--gris);
}

.contacto {
  justify-self: end;
  text-align: right;
  font-size: 0.9rem;
}

.contacto p {
  margin: 0.2rem 0;
}

.contacto a {
  color: var(--blanco);
  text-decoration: none;
}

.contacto a:hover {
  text-decoration: underline;
}
.titulo-destacado {
  color: var(--burdeos);
  font-size: 1.6rem;
  
}

/* GALERÍA - SLIDER AUTOMÁTICO */
.slider-box {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.slider {
  position: relative;
  height: 50vh; /* Más alargado y menos cuadrado */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
}

.slider-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  background: rgba(139, 30, 45, 0.6);
  backdrop-filter: blur(6px);
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.slider-text p {
  font-size: 1rem;
  margin: 0;
  max-width: 800px;
  line-height: 1.6;
  padding: 0 10px; /* Añade aire lateral */
  box-sizing: border-box;
}

.slider-text h2 {
  font-size: 1.6rem; /* Más pequeño */
  margin-bottom: 5px;
}


/* Flechas */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  background-color: rgba(128, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 3;
  border-radius: 50%;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.arrow:hover {
  background-color: rgba(128, 0, 0, 0.9);
}


/* PRESENTACIÓN */
main {
  padding: 1rem;
  max-width: 800px;
  margin: auto;
  flex: 1;
}

.presentacion h1 {
  color: var(--rojo);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* caracteristicas */
.building-features {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.features-row {
  display: flex;
  flex-wrap: nowrap; /* ← Esto evita que las columnas salten de línea */
  gap: 30px;
  justify-content: space-between;
}

.feature-column {
  flex: 1;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 0; /* ← Esto ayuda a evitar que se desborde */
}

.feature-title {
  background-color: #8b1e2d;
  color: white;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.feature-column ul {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.feature-column ul li {
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.feature-column ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8b1e2d;
}

/* fotos */
.caja-gris {
  background-color: #f2f2f2;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.caja-galeria {
  background-color: #f2f2f2;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 60px auto;
}

.galeria-exclusiva {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ← 4 columnas fijas */
  gap: 20px;
}

.galeria-exclusiva img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.galeria-exclusiva img:hover {
  transform: scale(1.05);
}
.galeria-fotos {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.galeria img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
}
.galeria-preview {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.titulo-destacado {
  font-size: 1.5rem;
  color: #7a1f2b; /* burdeos */
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
}

.galeria-mini {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.galeria-mini img {
  width: 30%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.galeria-mini img:hover {
  transform: scale(1.05);
}

.boton-galeria a {
  display: inline-block;
  background-color: #7a1f2b;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.boton-galeria a:hover {
  background-color: #a02c3c;
}

/* SITUACION */
.ubicacion-edificio {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

.ubicacion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.mapa {
  flex: 1;
  min-width: 280px;
}

.direccion {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1rem;
  color: var(--gris);
}

.direccion h3 {
  color: var(--burdeos);
  margin-bottom: 10px;
}

.direccion a {
  margin-top: 10px;
  color: var(--rojo);
  text-decoration: none;
  font-weight: bold;
}

.direccion a:hover {
  text-decoration: underline;
}

/* Contacto */
.contacto-edificio {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

.contacto-box {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
  box-sizing: border-box;
  font-size: 1rem;
  color: var(--gris);
}

.contacto-box h3 {
  color: var(--burdeos);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.contacto-box a {
  color: var(--rojo);
  text-decoration: none;
  font-weight: bold;
}

.contacto-box a:hover {
  text-decoration: underline;
}


/* INTERÉS */
.interes {
  margin-top: 2rem;
}

.interes img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.interes p {
  margin-top: 0.5rem;
  font-weight: bold;
  color: var(--rojo);
}

/* tabla de cookies */
.tabla-cookies {
  overflow-x: auto;
  margin-top: 30px;
}

.tabla-cookies table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.tabla-cookies th,
.tabla-cookies td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.tabla-cookies th {
  background-color: #8b1e2d;
  color: white;
  font-weight: bold;
}

.tabla-cookies tr:hover {
  background-color: #f9f9f9;
}



/* FOOTER */
footer {
  width: 100%;
  margin-top: 2rem;
  padding: 2rem 1rem;
  background-color: #eee; 
  text-align: center;
  font-size: 0.9rem;
  color: var(--gris);
  box-sizing: border-box;
  background: linear-gradient(to top, #ccc, #ddd);
  border-top: 1px solid #aaa;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer a {
  color: var(--gris);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}
footer a:hover {
  color: white;
}

.contacto-footer {
  margin-top: 0.5rem;
  color: var(--gris);
}



/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .logo img {
    max-width: 120px;
    margin-bottom: 10px;
  }

  .menu ul {
    flex-direction: column;
    padding: 0;
    margin: 10px 0;
  }

  .menu li {
    margin: 5px 0;
  }

  .contacto {
    margin-top: 10px;
  }

  .contacto p {
    margin: 5px 0;
  }
  
.slider {
    height: 40vh;
  }

  .slider-text h2 {
    font-size: 1.2rem;
  }

  .slider-text p {
    font-size: 0.9rem;
  }

  .arrow {
    font-size: 1.5rem;
    padding: 6px;
  }
  .features-row {
    flex-direction: column;
  }

  .feature-column {
    margin-bottom: 20px;
  }
  .galeria-mini img {
    width: 80%;
  }
  .ubicacion-row {
  flex-direction: column;
	}

	.mapa iframe {
  	height: 250px;
	}
	.galeria-exclusiva img {
    height: 150px;
  }
  .galeria-exclusiva {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
  }
}
