/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #F7B719;
    --text-color2: #8e8d8d;
    --border-color: #f0f0f0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --spacing-layout: 40px; /* Margen lateral general */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* =========================================
   CABECERA (HEADER)
   ========================================= */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px var(--spacing-layout);
    max-width: 1800px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo span {
    font-weight: 400;
    color: var(--text-muted);
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.navigation a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.navigation a:hover,
.navigation a.active {
    color: var(--text-color);
}

/* =========================================
   CONTENIDO Y CUADRÍCULA (GRID)
   ========================================= */
.main-content {
    padding: var(--spacing-layout);
    max-width: 1800px;
    margin: 0 auto;
    min-height: 80vh;
}

.work-grid {
    display: grid;
    /* Crea columnas responsivas dinámicas, mínimo 350px de ancho */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px 30px; /* Separación vertical y horizontal */
}

/* =========================================
   TARJETAS DE PROYECTO
   ========================================= */
.project-item {
    display: block;
    cursor: pointer;
}

/* Efecto Hover en el contenedor del proyecto */
.project-item:hover .project-image img {
    transform: scale(1.04);
}

.project-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* Uniforma las imágenes. Quita esto si prefieres un estilo "Masonry" desigual */
    overflow: hidden;
    background-color: #f8f8f8;
    margin-bottom: 16px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-info {
    padding: 0 4px;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.project-category {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* =========================================
   PIE DE PÁGINA (FOOTER)
   ========================================= */
.footer {
    padding: 40px var(--spacing-layout);
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-color2);
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --spacing-layout: 20px;
    }

    .header-inner {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .work-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
        gap: 40px;
    }
}
/* =========================================
   INTERIOR DEL PROYECTO
   ========================================= */
.project-detail {
    max-width: 1200px; /* Un poco más estrecho que la cuadrícula para centrar la atención */
    margin: 0 auto;
    padding: var(--spacing-layout);
}

.project-header {
    margin-top: 40px;
    margin-bottom: 60px;
}

.project-title-large {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

/* Ficha técnica del proyecto */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item span {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Texto de descripción */
.project-description {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 80px;
    color: #444; /* Un gris muy oscuro para facilitar la lectura continuada */
}

/* Galería en cascada (una foto debajo de otra) */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-gallery img {
    width: 100%;
    height: auto;
    background-color: #f8f8f8;
}

/* Botones Anterior / Siguiente */
.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.project-navigation a {
    font-size: 1.1rem;
    font-weight: 500;
}

.project-navigation a:hover {
    color: var(--text-muted);
}

/* =========================================
   RESPONSIVO PROYECTO (MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    .project-title-large {
        font-size: 2.2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 20px;
    }

    .project-description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .project-gallery {
        gap: 20px;
    }
    
    .project-navigation {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* =========================================
   PÁGINA SOBRE NOSOTROS (BIO)
   ========================================= */

.about-page {
    padding-top: 60px;
    padding-bottom: 100px;
}

/* HERO / BIOGRAFÍA */
.about-hero {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 70px;
}

.hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.lead-text {
    font-size: 1.35rem;
    line-height: 1.6;
    font-weight: 400;
    color: #000000;
}

.bio-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 20px;
}

/* CITAS*/
.quotes-section {
    margin-bottom: 90px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 70px;
}

.section-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 500;
}

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

.quote-card {
    border-top: 2px solid var(--text-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-card blockquote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
    font-style: normal;
}

.quote-card cite {
    font-style: normal;
    display: block;
}

.quote-card cite strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.quote-card cite span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color2);
    margin-top: 2px;
}


.studio-info {
    margin-bottom: 90px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 70px;
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.studio-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.studio-body p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}


.team-section {
    margin-bottom: 90px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 70px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px 40px;
}

.team-member {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.member-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
}

.member-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* SEDES / OFICINAS */
.offices-section {
    margin-bottom: 40px;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.office-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.office-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

.office-phone {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.office-phone:hover {
    color: var(--text-muted);
}

/* RESPONSIVO SOBRE NOSOTROS */
@media (max-width: 900px) {
    .bio-grid,
    .studio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }

    .lead-text {
        font-size: 1.15rem;
    }
}

/* Estructura del Hero con Retrato */
.hero-layout {
    display: flex;
    gap: 60px; /* Separación entre foto y texto */
    align-items: flex-start;
}

.hero-portrait {
    flex: 0 0 350px; /* Ancho fijo para el retrato */
    max-width: 350px;
}

.hero-portrait img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px; /* Opcional: bordes ligeramente redondeados */
}

/* Modificación de la bio-grid para ajustarse al layout flex */
.hero-layout .bio-grid {
    flex: 1; /* Ocupa el resto del espacio */
    grid-template-columns: 1fr; /* Una columna de texto */
    gap: 30px;
}

/* Estilos para las Fotos del Equipo */
.team-member {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar elementos */
    text-align: center;
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Foto circular */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0; /* Fondo si la imagen falla */
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la cara se vea bien */
}

.member-name {
    font-size: 1rem;
}

/* RESPONSIVO ACTUALIZADO */
@media (max-width: 900px) {
    .hero-layout {
        flex-direction: column; /* Apilar en móviles */
        gap: 40px;
        align-items: center;
    }

    .hero-portrait {
        flex: 1;
        width: 100%;
        max-width: 400px; /* Un poco más ancho en móviles alineado */
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }
}

/* ===================================================
   VISOR DE IMÁGENES A PANTALLA COMPLETA (LIGHTBOX)
   =================================================== */

/* Cursor en forma de mano para señalar interactividad */
.project-item {
  cursor: pointer;
}

/* Desactiva el scroll del fondo mientras se ve una obra */
body.no-scroll {
  overflow: hidden;
}

/* Pantalla oscura de fondo */
.lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

/* Estado activo */
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Imagen a tamaño completo */
.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Pie de foto / categoría */
.lightbox-caption {
  color: #e0e0e0;
  margin-top: 15px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Botón de cierre (X) */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 38px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 0.6;
}
/* ===================================================
   DISEÑO RESPONSIVO Y ADAPTABILIDAD
   =================================================== */

/* Ajustes de flexibilidad general para medios */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base de la rejilla de proyectos */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

/* ---------------------------------------------------
   TABLETS Y PANTALLAS MEDIANAS (máx. 768px)
   --------------------------------------------------- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
  }

  .navigation ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .lightbox-content {
    max-width: 95vw;
    max-height: 75vh;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 34px;
  }
}

/* ---------------------------------------------------
   MÓVILES (máx. 480px)
   --------------------------------------------------- */
@media (max-width: 480px) {
  .header {
    padding: 1.5rem 1rem;
  }

  .logo a {
    font-size: 1.1rem;
  }

  .navigation ul {
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
  }

  .navigation a {
    font-size: 0.9rem;
  }

  /* Una sola columna de imágenes en móviles */
  .work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-info {
    padding-top: 0.5rem;
  }

  .project-category {
    font-size: 0.95rem;
  }

  /* Ajustes para el visor en pantallas pequeñas */
  .lightbox {
    padding: 10px;
  }

  .lightbox-content {
    max-width: 98vw;
    max-height: 70vh;
  }

  .lightbox-caption {
    font-size: 0.85rem;
    margin-top: 10px;
  }

  .footer {
    padding: 2rem 1rem;
    font-size: 0.85rem;
  }
}
/* 1. Cálculo correcto del ancho de todos los elementos */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Evita scroll horizontal indeseado */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* 3. Margen lateral obligatorio en las secciones principales */
.header,
.main-content,
.footer {
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100%;
}

/* 4. Centra los contenedores internos sin que peguen al borde */
.header-inner,
.work-grid {
  max-width: 1200px; /* Ajusta este valor si prefieres la web más ancha o estrecha */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Ajuste fino para teléfonos */
@media (max-width: 480px) {
  .header,
  .main-content,
  .footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* ===================================================
   RESPONSIVE PARA LA PÁGINA DE BIOGRAFÍA (BIO.HTML)
   =================================================== */

/* Contenedor general con margen de seguridad lateral */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
}

/* Disposición principal: Imagen a la izquierda y Biografía a la derecha */
.hero-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Columna de la imagen */
.hero-portrait {
  width: 100%;
  position: sticky;
  top: 20px;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

/* Flujo de texto e información */
.bio-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.bio-highlight .lead-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 1rem 0 0.2rem 0;
  color: #111;
  border-bottom: 2px solid #111;
  padding-bottom: 0.4rem;
  display: inline-block;
}

.bio-text p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.8rem;
  color: #333;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Hace fluido el vídeo para que nunca desborde la pantalla */
.bio-grid video {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: 4px;
  margin-top: 1.5rem;
  background-color: #000;
}

/* Bloque de Exposiciones */
.quotes-section {
  border-top: 1px solid #eaeaea;
  padding-top: 3rem;
  margin-top: 2rem;
}

.section-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  padding: 1.25rem 1.5rem;
  background-color: #f9f9f9;
  border-left: 3px ;
  border-radius: 2px;
}

.quote-card cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.quote-card strong {
  font-size: 0.98rem;
  color: #111;
}

.quote-card span {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* ---------------------------------------------------
   TABLETS (máx. 900px)
   --------------------------------------------------- */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr; /* Pasa a 1 sola columna vertical */
    gap: 2rem;
  }

  .hero-portrait {
    position: static;
    max-width: 450px;
    margin: 0 auto;
  }

  .quotes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------
   MÓVILES (máx. 480px)
   --------------------------------------------------- */
@media (max-width: 480px) {
  .about-page {
    padding: 1.5rem 1rem; /* Margen de seguridad para no pegar texto al borde */
  }

  .bio-highlight .lead-text {
    font-size: 1.1rem;
  }

  .bio-text p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .quotes-grid {
    grid-template-columns: 1fr; /* Una tarjeta por fila */
    gap: 1rem;
  }

  .quote-card {
    padding: 1rem;
  }
}
/* ===================================================
   PÁGINA DE CONTACTO (CONTACTO.HTML)
   =================================================== */

/* Contenedor principal de contacto */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem 1.5rem;
  box-sizing: border-box;
}

/* Layout a dos columnas (Texto a la izq, Form a la der) */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Detalles de contacto */
.contact-details {
  margin-top: 2rem;
}

.contact-link {
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #666;
  text-decoration: underline;
}

/* Estructura del formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #f9f9f9;
  padding: 2.5rem;
  border-radius: 3px;
  border: 1px solid #eaeaea;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
}

/* Campos de entrada y área de texto */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background-color: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 2px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

/* Efecto al hacer clic en un campo (Focus) */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

/* Área de texto sin redimensionamiento horizontal */
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Botón de enviar */
.btn-submit {
  background-color: #111;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
  background-color: #333;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* ---------------------------------------------------
   TABLETS Y MÓVILES (máx. 900px)
   --------------------------------------------------- */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr; /* Pasa a 1 columna */
    gap: 3rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-page {
    padding: 1.5rem 1rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
    border: none;
    border-top: 3px solid #111;
  }
}

/* ===================================================
   PÁGINA DE INICIO (PORTADA / INDEX.HTML)
   =================================================== */

/* 1. Prepara el body para ocupar el 100% de la ventana sin scroll */
body.home-body {
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* Elimina las barras de desplazamiento */
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* 2. Aseguramos que la cabecera sea blanca y no se comprima */
body.home-body .header {
  background-color: #ffffff;
  flex-shrink: 0; 
  position: relative;
  z-index: 10; /* La mantiene por encima de la imagen */
}

/* 3. Contenedor de la obra que rellena el resto de la pantalla */
.home-hero {
  flex-grow: 1; /* Ocupa todo el espacio restante disponible */
  width: 100%;
  
  /* IMPORTANTE: Ajusta la ruta si tu carpeta se llama distinto.
     Si el CSS está dentro de la carpeta 'css', usamos '../' para salir 
     y luego entramos a 'imagenes' */
  background-image: url('../imagenes/recorte1787164552656.jpg');
  
  background-size: cover; /* Escala la imagen para no dejar huecos en blanco */
  background-position: center center; /* Centra la obra */
  background-repeat: no-repeat;
}

/* 4. Ajuste de encuadre opcional para móviles */
@media (max-width: 480px) {
  body.home-body {
    height: 100dvh; /* Usa unidades dinámicas para móviles (ignora la barra de navegación del móvil) */
  }
}

/* Contenedor de la obra que rellena el resto de la pantalla */
.home-hero {
  flex-grow: 1; 
  width: 100%;
  
  /* Imagen inicial por defecto al cargar la web */
  background-image: url('../imagenes/recorte1787164552656.jpg');
  
  background-size: cover; 
  background-position: center center; 
  background-repeat: no-repeat;
  
  /* NUEVO: Transición suave de 1.5 segundos para que haya un fundido entre obras */
  transition: background-image 1.5s ease-in-out;
}