/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #111;
  color: #fff;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
.header {
  background: #000;
  padding: 1rem 0;
  border-bottom: 2px solid #d4af37;
}

.logo {
  color: #d4af37;
  font-size: 1.8rem;
  font-weight: bold;
}

.nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
}

.nav ul li {
  margin-left: 20px;
}

.nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.nav ul li a:hover {
  color: #d4af37;
}

/* Hero */
.hero {
  background: url('imagenes/banner-red-mundial-inmobiliaria.jpg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
}

.hero h2 {
  font-size: 2.5rem;
  color: #d4af37;
}

.hero p {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
}

.btn:hover {
  background: #b8860b;
  color: #fff;
}

/* Sections */
.section {
  padding: 3rem 0;
  text-align: center;
}

.section h2 {
  margin-bottom: 1.5rem;
  color: #d4af37;
}

.section p {
  margin-bottom: 1rem;
}

.section.dark {
  background: #222;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #000;
  padding: 1.5rem;
  border: 1px solid #d4af37;
  border-radius: 10px;
}

.card h3 {
  margin-bottom: 1rem;
  color: #d4af37;
}

.price {
  margin-top: 1rem;
  font-weight: bold;
  color: #fff;
}


/* Footer */
.footer {
  background: #000;
  text-align: center;
  padding: 1rem;
  border-top: 2px solid #d4af37;
}
/* Consejo Directivo */
.directivo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* siempre 5 columnas en escritorio */
  gap: 1.5rem;
  margin-top: 2rem;
}

.directivo-card {
  background: #000;
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.directivo-card:hover {
  transform: translateY(-8px);
  border-color: #ffd700;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.directivo-card img {
  width: 100%;
  max-width: 250px; /* ajusta tamaño para que quepan 5 */
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.directivo-card:hover img {
  transform: scale(1.05);
}

.directivo-card h3 {
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.directivo-card p {
  font-size: 0.9rem;
  color: #ddd;
}

/* Responsive: en móvil se apilan */
@media (max-width: 900px) {
  .directivo-grid {
    grid-template-columns: 1fr;
  }
}
/* Header fijo */
.header {
  background: #000;
  padding: 1rem 0;
  border-bottom: 2px solid #d4af37;
  position: sticky; /* clave */
  top: 0;           /* siempre en la parte superior */
  z-index: 1000;    /* por encima del contenido */
}
/* Scroll suave */
html {
  scroll-behavior: smooth;
}
/* Servicios */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* siempre 3 por fila */
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: 1fr; /* en móvil uno debajo del otro */
  }
}
/* Contacto */
#contacto p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

#contacto a {
  color: #d4af37;
  text-decoration: none;
  font-weight: bold;
}

#contacto a:hover {
  color: #fff;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  padding: 0.5rem 1rem;
  border: 1px solid #d4af37;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #d4af37;
  color: #000;
}
/* Redes sociales con íconos */
.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  font-size: 2rem;
  color: #d4af37;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  color: #fff;
  transform: scale(1.2);
}
/* Flags grid */
.flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.flag-card {
  background: #222; /* gris oscuro en lugar de negro */
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.flag-card:hover {
  transform: scale(1.05);
  background: #333; /* un gris un poco más claro en hover */
}

.flag-card img {
  width: 100%;
  max-width: 150px;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6); /* brillo dorado para resaltar */
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
/* Sección miembro individual a dos columnas */
.miembro-section {
  padding: 3rem 0;
}

.miembro-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

/* En pantallas más pequeñas, se vuelven una columna */
@media (max-width: 768px) {
  .miembro-container {
    grid-template-columns: 1fr;
  }
}

.miembro-sidebar {
  background: #222;
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.miembro-sidebar img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.miembro-sidebar h2 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.miembro-sidebar p {
  color: #ddd;
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.miembro-logo img {
  width: 100%;
  max-width: 300px;
  margin: 1rem auto;
}

.miembro-certificado {
  margin-top: 1.5rem;
}

.miembro-certificado h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.miembro-certificado img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
}

/* Contenido de presentación */
.miembro-content {
  background: #111;
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 2rem;
}

.miembro-content h3 {
  color: var(--gold);
  margin-top: 0;
}

/* Justificar texto */
.miembro-content p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Lista alineada a la izquierda */
.miembro-content ul {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.5rem; /* sangría */
  text-align: left;     /* fuerza la alineación a la izquierda */
}

.miembro-content ul li {
  margin-bottom: 0.5rem;
}
/* Sección de certificado a ancho completo */
.miembro-certificado {
  text-align: center;
  margin-top: 3rem;
}

.miembro-certificado h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.miembro-certificado img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}
/* Sección miembro individual */
.miembro-section {
  padding: 3rem 0;
}

.miembro-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .miembro-container {
    grid-template-columns: 1fr;
  }
}

.miembro-sidebar {
  background: #222;
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.miembro-sidebar img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.miembro-sidebar h2 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.miembro-sidebar p {
  color: #ddd;
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.miembro-logo img {
  width: 100%;
  max-width: 300px;
  margin-top: 1rem;
}

/* Columna derecha */
.miembro-content {
  background: #111;
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 2rem;
}

.miembro-content h3 {
  color: var(--gold);
  margin-top: 0;
}

.miembro-content p, 
.miembro-content ul {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Sección certificado */
.miembro-certificado {
  margin-top: 3rem;
}

.miembro-certificado h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
}

.certificado-box {
  background: #111;
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.certificado-box img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
}
/* Imagen del miembro y logotipo: mismo tamaño */
.miembro-sidebar img,
.miembro-logo img {
  width: 300px;
  height: 300px;
  object-fit: cover;     /* recorta manteniendo proporción */
  border-radius: 10px;   /* bordes suaves */
  display: block;
  margin: 0 auto 1rem;   /* centra y deja espacio abajo */
}
/* Enlaces generales */
a {
  color: #d4af37;            /* dorado */
  text-decoration: none;     /* sin subrayado */
  font-weight: 500;
}

a:hover {
  color: #fff;               /* blanco al pasar el mouse */
  text-decoration: underline; /* opcional: subrayado en hover */
}
/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  border-top: 2px solid #d4af37;
  padding: 1rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1000;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  text-align: justify;
}

.cookie-banner a {
  color: #d4af37;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cookie-buttons button {
  background: #d4af37;
  color: #111;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.cookie-buttons button:hover {
  background: #fff;
  color: #111;
}

/* Popup Cookies */
.cookie-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.cookie-popup-content {
  background: #111;
  color: #fff;
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
}

.cookie-popup-content h3 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.cookie-popup-content label {
  display: block;
  margin: 0.5rem 0;
}

.popup-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.popup-buttons button {
  background: #d4af37;
  color: #111;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.popup-buttons button:hover {
  background: #fff;
  color: #111;
}
