/* Tipografías y colores */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background-color: #fffdf8;
  color: #3e3e3e;
}

.hero {
  background-image: url('imagenes/hero.JPEG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 1rem;
  padding-top: 8rem;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  border-bottom: 3px solid #faf5ef;
}

nav a.activo {
  font-weight: bold;
  color: #996633;
}

.centered-title {
  text-align: center;
}


h1 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
}

h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #4a3b2c;
}


header {
  background: linear-gradient(135deg, #e8d8c3, #f6f0e1);
  text-align: center;
  padding: 0 1rem;
}

header .hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

header nav {
  margin-top: 1.5rem;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff4ed;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Estilo para el logo */
.logo img {
  height: 35px;
  width: auto;
}

/* Para que el contenido no quede oculto detrás del nav */
.hero {
  padding-top: 100px; /* Ajustalo según el alto real del nav */
}


nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #5a493c;
  font-weight: bold;
}

/* Contenedor de enlaces */
/* Alineación de links */
.nav-links {
  display: flex;
  gap: 1rem;
  flex: 1 1 auto;
  justify-content: center;
}

/* Por defecto, el nav se ve en pantallas grandes */
nav {
  display: block;
}

/* En celulares (pantallas chicas, <768px) se oculta */
@media (max-width: 768px) {
  nav {
    display: none;
  }
}

/* Botón hamburguesa
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #5a493c;
}

/* Responsive 
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-end;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-bottom: 0.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #fff4ed;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.mostrar {
    display: flex;
  }

  nav a {
    margin: 0.5rem 0;
  }
} */



main {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 3rem;
}

section img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

.video-section {
  width: 100vw;          
  height: 600px;         /* altura fija tipo banner */
  margin: 0;
  padding: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;   /* rompe los límites del contenedor */
  overflow: hidden;      /* recorta el exceso de video */
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* recorta sin deformar */
  display: block;
}


.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  background: rgba(0,0,0,0.4);
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 80%;
}

/* 🔹 Mobile: texto debajo del video */
@media (max-width: 768px) {
  .video-section {
    max-height: none; /* deja crecer el contenedor */
  }

  .video-overlay {
    position: static;      /* ya no está sobre el video */
    transform: none;
    max-width: 100%;       /* ocupa todo el ancho */
    background: none;      /* sin fondo semitransparente */
    color: black;          /* cambia a negro para que se lea sobre fondo blanco */
    text-align: left;      /* opcional: alineado normal */
    padding: 1rem 0;
  }
}


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  display: block;
  text-decoration: none;
  background-color: #fff;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 24px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  color: inherit;
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
}


.card {
  background-color: #fdfaf4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  transition: transform 0.2s;
  min-height: 365px; /* ajustá según lo que necesites */
}

.card:hover {
  transform: translateY(-5px);
}

footer {
  text-align: center;
  background-color: #f3ede7;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #996633;
  text-decoration: none;
  font-weight: bold;
}

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

.formulario-contacto {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem;
}

.columna-imagen,
.columna-formulario {
  flex: 1 1 45%;
  min-width: 300px;
}

.columna-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .formulario-contacto {
    flex-direction: column;
  }

  .columna-imagen {
    display: none;
  }
}

.manifiesto {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 4rem auto;
  padding: 1rem 2rem;
  color: #333;
  text-align: center;
}
.manifiesto h2 {
  font-style: normal;
  margin-bottom: 2rem;
  font-size: 2rem;
  letter-spacing: 0.5px;
}


.item-contacto {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.item-contacto:hover {
  transform: scale(1.10);
}

.item-contacto svg {
  min-width: 28px;
}


/* Colores por red */
.mapa svg {
  color: #f13939;
}

.instagram svg {
  color: #d6249f;
}

.whatsapp svg {
  color: #25D366;
}

.gmail svg {
  color: #EA4335;
}


footer {
  font-family: Arial, sans-serif;
}

.bios {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.bios h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #5a493c;
}

.bio-card {
  display: flex;
  flex-direction: column;
  background: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  overflow: hidden;
}

.bio-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.bio-content {
  padding: 1.5rem;
  text-align: left;
}

.bio-content h3 {
  margin-top: 0;
  color: #3a2d25;
}

.bio-intro {
  font-size: 1rem;
  line-height: 1.5;
}

.bio-more {
  display: none;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.toggle-bio {
  display: inline-block;
  margin-top: 1rem;
  background: #5a493c;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.toggle-bio:hover {
  background: #7a6451;
}

/* Responsive: foto al lado del texto en pantallas grandes */
@media (min-width: 768px) {
  .bio-card {
    flex-direction: row;
  }

  .bio-card img {
    max-width: 300px;
    height: auto;
  }

  .bio-content {
    flex: 1;
  }
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block; /* makes sure the link takes the whole card */
}



.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;  /* 🔑 límite real del contenedor */
  overflow: hidden;  /* evita que la imagen se salga */
  border-radius: 8px;
  background: #fff;
  padding: 0; /* opcional: sin padding extra */
}

.popup-content img {
  max-width: 90vw;
  max-height: 90vh;  /* 🔑 la imagen nunca supera al contenedor */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain; /* asegura que se ajuste sin recortar */
}

/* popup mobile ... */

@media (max-width: 600px) {
  .popup-content {
    max-width: 95vw;   /* ocupa casi todo el ancho */
    max-height: 95vh;  /* ocupa casi todo el alto */
  }

  .popup-content img {
    max-width: 100%;
    max-height: 100%;
  }
}


.close {
  position: absolute;
  top: 5px;
  right: 10px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
}


  .close:hover {
    color: #000;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }


/* footer mapa oculto en mobile */

@media (max-width: 768px) {
  .footer-mapa {
    display: none;
  }
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Contenedor del ToC */
.toc {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  max-width: 350px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Título del ToC */
.toc h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #333;
  font-weight: 600;
}

/* Lista de enlaces */
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.6rem;
}

/* Estilo de enlaces */
.toc a {
  text-decoration: none;
  color: #0077cc;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

/* Hover */
.toc a:hover {
  color: #005999;
  padding-left: 4px;
}
