:root {
  --negro: #111;
  --rojo: #444; /* menos saturado, escala de grises */
  --dorado: #888; /* gris medio */
  --blanco: #fff;
  --gris: #bbb;
  --fuente-titulo: 'Playfair Display', serif;
  --fuente-texto: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fondo general blanco */
body {
  background: var(--blanco);
  color: var(--negro);
}

/* Textos principales en negro */
h1, h2, h3, h4, h5, h6,
.section-title, .section-title-gif, .logo, .produccion-titulo {
  color: var(--negro);
}

/* Textos secundarios cambiar a negro */
p, li, .equipo-puesto, .equipo-descripcion, .produccion-sinopsis, .produccion-detalles, .produccion-video, .produccion-descargables {
  color: #111; /* Cambiar de #444 a #111 (negro) */
}

/* Links en gris medio y negro al pasar el mouse */
a {
  color: #666;
  text-decoration: underline;
}
a:hover, a:focus {
  color: #111;
}

/* Inputs y botones con texto oscuro */
input, textarea, button {
  color: #111;
  background: #f5f5f5;
  border: 1px solid #bbb;
}

button {
  background: #e0e0e0;
  color: #111;
  border-radius: 4px;
}

button:hover, button:focus {
  background: #bbb;
  color: #000;
}

/* Carrusel: fondo blanco y controles oscuros */
.carousel {
  background: #fff;
}

.carousel-btn {
  color: #111;
  background: rgba(200,200,200,0.8);
  border: 1px solid #bbb;
}

.carousel-btn:hover {
  background: #eee;
  color: #000;
}

body {
  background: var(--blanco);
  color: var(--negro);
  font-family: var(--fuente-texto);
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff; /* Fondo blanco para header */
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: #fff; /* Fondo blanco para nav */
}

.logo {
  font-family: var(--fuente-titulo);
  font-size: 2rem;
  color: var(--dorado);
  letter-spacing: 2px;
  cursor: pointer;
}

.logo-img {
  height: 3rem;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo-img:hover {
  content: url('imagenes/navbar/Casa_Gris_Titulo.gif');
}

.logo span {
  color: var(--rojo);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: #222; /* Texto oscuro para enlaces */
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s;
  position: relative;
  padding: 0.2em 0;
  display: flex;
  align-items: center;
}

.nav-img {
  height: 2.5rem; /* Aumentado de 1.5rem a 2.5rem */
  width: auto;
  transition: opacity 0.3s ease;
}

.nosotros-nav-img:hover {
  content: url('imagenes/navbar/Nosotros.gif');
}

.proyectos-nav-img:hover {
  content: url('imagenes/navbar/Proyectos.gif');
}

.talleres-nav-img:hover {
  content: url('imagenes/navbar/Talleres.gif');
}

.contacto-nav-img:hover {
  content: url('imagenes/navbar/Contacto.gif');
}

/* Quitar el hover de nosotros-section-img */
/* .nosotros-section-img:hover {
  content: url('imagenes/navbar/Nosotros.png');
} */

nav ul li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--dorado);
  transition: width 0.3s;
  position: absolute;
  bottom: 0;
  left: 0;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--dorado);
}


main {
  margin-top: 0; /* Remover margen superior */
  position: relative;
}

.section {
  min-height: 100vh;
  padding: 4rem 2rem 2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: none; /* Ocultar completamente por defecto */
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  z-index: 1;
}

/* Mostrar sección activa */
.section.active {
  display: flex; /* Mostrar cuando está activa */
  opacity: 1;
  transform: translateY(0);
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--fuente-titulo);
  font-size: 2.5rem;
  color: var(--dorado);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  opacity: 1; /* Hacer visible */
}

.section-title-gif {
  display: block;
  max-width: 420px;
  width: 100%;
  margin: 0 auto 2rem auto;
  opacity: 1; /* Hacer visible */
  cursor: pointer;
}

.nosotros-img:hover {
  content: url('imagenes/equipo/Nosotros.gif');
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  opacity: 1; /* Hacer visible */
}

.section-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(68,68,68,0.2);
  border: 3px solid var(--rojo);
  opacity: 1; /* Hacer visible */
}

.equipo-imgs {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.equipo-lista {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
  width: 100%;
}

.equipo-lista.equipo-dos-columnas {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.equipo-persona {
  display: flex;
  flex-direction: row;
  gap: 3rem; /* Más espacio entre imagen y texto */
  align-items: flex-start;
  background: rgba(240, 240, 240, 0.5);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(68,68,68,0.08);
  width: 100%;
  max-width: none; /* Remover limitación de ancho */
}

.equipo-img {
  width: 220px; /* Tamaño original */
  min-width: 220px;
  height: 280px; /* Tamaño original */
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(68,68,68,0.2);
  border: 3px solid var(--rojo);
  object-fit: cover;
  flex-shrink: 0;
}

.equipo-info {
  flex: 1; /* Ocupar todo el espacio restante */
  text-align: left;
  min-width: 0; /* Permite que el texto se ajuste */
}

.equipo-info h3 {
  margin: 0 0 0.5em 0;
  font-family: var(--fuente-texto); /* Cambiar de var(--fuente-titulo) a var(--fuente-texto) */
  color: var(--dorado);
  font-size: 1.5rem;
  letter-spacing: 1px;
  font-weight: 700; /* Añadir peso para que se vea bien */
}

.equipo-puesto {
  color: var(--rojo);
  font-weight: bold;
  margin-bottom: 1.5em;
  font-size: 1.1rem;
  line-height: 1.4;
}

.equipo-descripcion {
  color: #111; /* Cambiar de #444 a #111 (negro) */
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

/* Remover estilos que dividían en columnas */
.equipo-persona.izquierda,
.equipo-persona.derecha {
  /* Remover estilos específicos */
}

.section-content p,
.section-content ul,
.section-content form,
.section-content .contact-info {
  font-size: 1.2rem;
  color: #111; /* Cambiar de #444 a #111 (negro) */
  opacity: 1;
}

.section-content ul {
  list-style: disc inside;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background: #f5f5f5;
  color: #111;
  resize: none;
}

.contact-form button {
  background: var(--rojo);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-family: var(--fuente-titulo);
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--dorado);
  color: var(--negro);
}

/* Hacer visible el contenido de la descripción de Casa Gris */
.casa-gris-descripcion {
  color: #111; /* Cambiar de #444 a #111 (negro) */
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: justify;
}

.casa-gris-logo {
  display: block;
  max-width: 400px; /* Aumentado de 200px a 400px */
  width: 100%;
  margin: 1rem auto;
  opacity: 1;
}

/* Carrusel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1600px; /* antes 1400px - más ancho */
  margin: 110px auto 40px auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(183,28,28,0.2);
  background: #222;
  min-height: 800px; /* antes 600px - más alto */
  z-index: 3;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Ocultar carrusel cuando hay sección activa */
.carousel.hidden {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  display: none; /* Ocultar completamente */
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}

.carousel-img {
  min-width: 100%;
  height: 800px; /* antes 600px - más alto */
  object-fit: cover;
  opacity: 0.95;
  user-select: none;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(24,24,24,0.7);
  color: var(--dorado);
  border: none;
  font-size: 2.5rem;
  padding: 0 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.carousel-btn:hover {
  background: var(--rojo);
  color: var(--blanco);
}
.carousel-btn.prev {
  left: 16px;
}
.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--dorado);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
}
.carousel-dots button.active {
  opacity: 1;
  background: var(--rojo);
}

/* Carrusel específico para proyectos */
.proyecto-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(68,68,68,0.2);
  background: #f5f5f5;
  height: 500px; /* Aumentado de 400px a 500px */
}

.proyecto-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.77,0,.18,1);
  will-change: transform;
  height: 100%;
}

.proyecto-carousel-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.proyecto-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease;
}

.proyecto-carousel-btn:hover {
  background: rgba(0,0,0,0.9);
}

.proyecto-carousel-btn.prev {
  left: 10px;
}

.proyecto-carousel-btn.next {
  right: 10px;
}

.proyecto-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.proyecto-carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.proyecto-carousel-dots button.active {
  background: white;
}

@media (max-width: 600px) {
  .proyecto-carousel {
    height: 350px; /* Aumentado de 300px a 350px */
  }
  
  .proyecto-carousel-btn {
    font-size: 1.2rem;
    padding: 6px 10px;
  }
}

@media (max-width: 900px) {
  .carousel {
    max-width: 100%;
    min-height: 500px; /* antes 400px - más alto en móvil */
  }
  .carousel-img {
    height: 500px; /* antes 400px - más alto en móvil */
  }
}

@media (max-width: 600px) {
  .carousel {
    margin-top: 90px;
    min-height: 300px; /* antes 250px - más alto en móvil pequeño */
  }
  .carousel-img {
    height: 300px; /* antes 250px - más alto en móvil pequeño */
  }
}

@media (max-width: 900px) {
  .section-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  main {
    margin-top: 80px;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 1rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .section {
    padding: 2.5rem 0.5rem 1.5rem 0.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

.ancho-completo {
  max-width: 1600px; /* antes 1200px - ajustado al nuevo ancho del carrusel */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Galería de imágenes para proyectos */
.galeria-imagenes {
  margin-bottom: 3rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.galeria-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(68,68,68,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(68,68,68,0.25);
}

@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .galeria-img {
    height: 150px;
  }
}
.produccion-descargables-container h4 {
  font-size: 1.3rem;
  font-family: var(--fuente-texto);
  color: var(--negro);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--dorado);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carpeta-icon {
  width: 32px; /* Aumentado de 24px a 32px */
  height: 32px; /* Aumentado de 24px a 32px */
  object-fit: contain;
}

.produccion-sinopsis-container,
.produccion-detalles-container {
  margin-bottom: 2rem;
}

.produccion-sinopsis {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #111; /* Cambiar de #444 a #111 (negro) */
  text-align: justify;
}

.produccion-detalles {
  list-style: none;
  padding: 0;
}

.produccion-detalles li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #111; /* Cambiar de #444 a #111 (negro) */
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.produccion-descargables-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #eee;
}

.produccion-descargables ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.produccion-descargables a {
  background: var(--rojo);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 600;
}

.produccion-descargables a:hover {
  background: var(--dorado);
  color: var(--negro);
}

.cerrar-info {
  background: var(--rojo);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin: 2rem auto 0;
  display: block;
  transition: background 0.3s ease;
}

.cerrar-info:hover {
  background: var(--dorado);
  color: var(--negro);
}

/* Estilos para contacto */
.contacto-container {
  margin-top: 2rem;
}

.contacto-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(240, 240, 240, 0.5);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(68,68,68,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(68,68,68,0.15);
}

.contacto-icon {
  flex-shrink: 0;
}

.contacto-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.contacto-icon-fa {
  font-size: 48px;
  color: var(--dorado);
  transition: color 0.3s ease, transform 0.3s ease;
}

.contacto-item:hover .contacto-icon-fa {
  color: var(--negro);
  transform: scale(1.1);
}

/* Colores específicos para cada red social */
.fa-whatsapp {
  color: #25D366;
}

.fa-instagram {
  color: #E4405F;
}

.fa-youtube {
  color: #FF0000;
}

.fa-envelope {
  color: #EA4335;
}

.contacto-item:hover .fa-whatsapp {
  color: #128C7E;
}

.contacto-item:hover .fa-instagram {
  color: #C13584;
}

.contacto-item:hover .fa-youtube {
  color: #CC0000;
}

.contacto-item:hover .fa-envelope {
  color: #B23121;
}

.contacto-content h4 {
  font-size: 1.2rem;
  font-family: var(--fuente-texto);
  color: var(--negro);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contacto-content a {
  color: #666;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.contacto-content a:hover {
  color: var(--dorado);
}

.produccion-creditos-container {
  margin-bottom: 2rem;
}

.produccion-creditos {
  list-style: none;
  padding: 0;
}

.produccion-creditos li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #111; /* Cambiar de #444 a #111 (negro) */
  line-height: 1.6;
}

.username {
  font-size: 0.85rem;
  color: #666;
  background: rgba(136, 136, 136, 0.1);
  border: 1px solid rgba(136, 136, 136, 0.3);
  border-radius: 12px;
  padding: 2px 8px;
  margin-left: 0.5rem;
  display: inline-block;
  font-weight: normal;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.username:hover {
  background: rgba(136, 136, 136, 0.2);
  border-color: rgba(136, 136, 136, 0.5);
  transform: translateY(-1px);
  color: #E4405F; /* Color de Instagram al hacer hover */
}

.proyecto-card {
  position: relative;
  width: 300px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(68,68,68,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.proyecto-card:hover {
  transform: translateY(-5px);
}

.proyecto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.proyecto-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.proyecto-card:hover .proyecto-overlay {
  transform: translateY(0);
}

.ver-mas {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  text-align: center;
}

.proyecto-info {
  margin-top: 4rem; /* Aumentado de 2rem a 4rem para más espacio */
  padding: 3rem;
  background: rgba(240, 240, 240, 0.5);
  border-radius: 12px;
  animation: fadeInUp 0.6s ease; /* Cambiado de slideInUp a fadeInUp */
  transition: all 0.4s ease; /* Aumentado de 0.3s a 0.4s */
  max-width: 95vw;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
}

.proyecto-info.show {
  opacity: 1;
  transform: translateY(0);
}

.proyecto-info.closing {
  animation: fadeOutDown 0.4s ease forwards; /* Cambiado tiempo y ease */
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(40px); /* Reducido de 30px a 40px */
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from { 
    opacity: 1; 
    transform: translateY(0);
  }
  to { 
    opacity: 0; 
    transform: translateY(30px); /* Reducido de 20px a 30px */
  }
}

/* Estilos para proyectos */
.proyectos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Estilos específicos para la sección de proyectos */
#producciones {
  justify-content: flex-start; /* Cambiar de center a flex-start */
  padding-top: 2rem; /* Reducir padding superior */
}

#producciones .casa-gris-descripcion {
  margin-bottom: 1rem; /* Reducir margen inferior */
}

/* Estilos específicos para la sección de talleres */
#talleres {
  justify-content: flex-start;
  padding-top: 2rem;
}

#talleres .casa-gris-descripcion {
  margin-bottom: 1rem;
}

.taller-info {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #111; /* Cambiar de #444 a #111 (negro) */
}

.taller-info p {
  margin-bottom: 1rem;
}

.taller-info ul {
  list-style: none;
  padding: 0;
}

.taller-info ul li {
  margin-bottom: 0.5rem;
}

.taller-info a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.taller-info a:hover {
  color: var(--dorado);
}

.taller-imagen-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.taller-imagen {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(68,68,68,0.2);
}

@media (max-width: 600px) {
  .taller-imagen {
    max-width: 100%;
  }
}

/* Estilos específicos para la sección de contacto */
#contacto {
  justify-content: flex-start;
  padding-top: 2rem;
}

#contacto .casa-gris-descripcion {
  margin-bottom: 1rem;
}
