﻿/* ===============================
   Contenedor principal
   =============================== */
.container {
  max-width: 900px;        /* ancho máximo en desktop */
  margin: 0 auto;          /* centrado horizontal */
  padding: 0 1rem;         /* margen interno lateral */
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===============================
   Títulos principales y subtítulos
   =============================== */
header h1 {
  font-size: 2rem;
  color: #004d99;
  margin-bottom: 0.5rem;
  text-align: center;
}

header p {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

/* ===============================
   Grid de terrenos en index
   =============================== */
.estados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.estados-grid article {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.estados-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.estados-grid img.property-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}

/* ===============================
   Títulos y descripciones de los terrenos
   =============================== */
.estados-grid h2 {
  font-size: 1.25rem;
  color: #004d99;
  margin: 10px 15px 5px;
}

.estados-grid p {
  font-size: 0.95rem;
  color: #555;
  margin: 0 15px 10px;
  line-height: 1.4;
}

.detalle-link {
  display: inline-block;
  background-color: #004d99;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  margin: 0 15px 15px;
  transition: background 0.3s ease;
}

.detalle-link:hover {
  background-color: #003366;
}

/* ===============================
   Video container y miniaturas
   =============================== */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;   /* 16:9 ratio */
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Miniatura con zoom y brillo al hover */
.video-container img.youtube-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.video-container:hover img.youtube-thumbnail {
  transform: scale(1.05);
  filter: brightness(0.85);
}

/* Botón Play centrado */
.video-container .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 2;
}

.video-container .play-button:hover {
  background-color: rgba(0,0,0,0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Overlay opcional para destacar Play */
.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(0,0,0,0); /* invisible por defecto */
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.video-container:hover::before {
  background: rgba(0,0,0,0.1);
}

/* ===============================
   Secciones de contenido
   =============================== */
section {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

section ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

section ul li {
  margin-bottom: 0.5rem;
}

/* ===============================
   Botones generales
   =============================== */
a.btn {
  display: inline-block;
  background-color: #004d99;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  margin-top: 10px;
  transition: background 0.3s ease;
}

a.btn:hover {
  background-color: #003366;
}

/* ===============================
   Footer
   =============================== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #f4f4f4;
  font-size: 0.875rem;
  color: #555;
}

footer a {
  color: #004d99;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===============================
   Responsive adjustments
   =============================== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .video-container .play-button {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .detalle-link,
  a.btn {
    padding: 8px 14px;
  }

  .estados-grid {
    gap: 15px;
  }
}
