/* ======================================================
   EVA MAURICIO — ESTILOS PRINCIPALES
   01. Reset y base
   02. Navegación
   03. Portada
   04. Secciones generales
   05. Bio
   06. Trayectoria
   07. Proyectos y obras
   08. Series INfluir
   09. Media
   10. Contacto y footer
   11. Lightbox
   12. Carrusel
   13. Responsive
====================================================== */


/* ======================================================
   01. RESET Y BASE
====================================================== */

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1f1f1f;
  background: #f6f3ef;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
/* ======================================================
   FONDO PÁGINAS DE PROYECTO
====================================================== */

body.pagina-proyecto {
  background: #ffffff;
}

body.pagina-cargada {
  opacity: 1;
  transform: translateY(0);
}

body.saliendo {
  opacity: 0;
  transform: translateY(14px);
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  padding: 120px 7vw 90px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: normal;
  margin-bottom: 50px;
}


/* ======================================================
   02. NAVEGACIÓN
====================================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 38px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  background: rgba(246, 243, 239, 0.75);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: none;
  transition:
    padding 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

nav.nav-reducido {
  padding: 14px 7vw;
  background: rgba(246, 243, 239, 0.96);
  box-shadow: none;
}

.logo {
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.menu {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.menu a {
  transition: opacity 0.3s ease;
}

.menu a:hover {
  opacity: 0.55;
}


/* ======================================================
   03. PORTADA
====================================================== */

.portada {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 7vw 80px;
  background:
    linear-gradient(rgba(246, 243, 239, 0.45), rgba(246, 243, 239, 0.92)),
    url('../imagenes/portada/portada.jpg') center/cover no-repeat;
}

.hero {
  max-width: 850px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: normal;
  line-height: 0.95;
  margin-bottom: 28px;
  color: #48635c;
}

.hero p {
  max-width: 620px;
  font-size: 1.25rem;
  color: #444;
}


/* ======================================================
   04. SECCIONES GENERALES
====================================================== */

.intro-grid {
  display: block;
}

.intro-grid p {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.text-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  max-width: 1200px;
}

.section-label {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: #777;
}

.text-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 780px;
}


/* ======================================================
   05. BIO
====================================================== */

.bio-imagen-contenedor,
#bio-textos {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.bio-imagen-contenedor {
  margin-top: 0;
  margin-bottom: 70px;
  padding: 0;
}

.bio-imagen-contenedor img {
  width: 100%;
  height: auto;
  display: block;
}

#bio-textos p {
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: justify;
  margin-bottom: 28px;
}


/* ======================================================
   06. TRAYECTORIA
====================================================== */

.cv-list {
  max-width: 1200px;
  margin: 0 auto;
  border-top: none;
}

.cv-seccion {
  margin-bottom: 70px;
}

.cv-seccion h2 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 25px;
  border-bottom: none;
  padding-bottom: 0;
}

.cv-seccion ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-seccion li {
  margin-bottom: 14px;
  line-height: 1.7;
}

.cv-descarga {
  margin-top: 90px;
  text-align: center;
}

.cv-descarga a {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.82rem;
  border: 1px solid #c9c2ba;
  padding: 14px 22px;
  display: inline-block;
  transition: 0.3s ease;
}

.cv-descarga a:hover {
  background: #48635c;
  color: white;
}

/* Compatibilidad con el antiguo formato de CV, por si alguna página lo usa */
.cv-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid #ccc;
}

.cv-item span {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #777;
}


/* ======================================================
   07. PROYECTOS Y OBRAS
====================================================== */
/* ---------- Galerías generales ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
}

.project-card {
  display: block;
  text-align: center;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(10%) contrast(1.05);
}
#otros-trabajos-grid .project-card img {
  height: 520px;
  object-fit: cover;
  object-position: center top;
}
.project-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.1);
}

.project-card h3 {
  margin-top: 22px;
  font-weight: normal;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

.project-header {
  padding: 150px 7vw 70px;
}

.project-title {
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: normal;
  line-height: 0.9;
  margin-bottom: 35px;
}

.project-subtitle {
  max-width: 820px;
  font-size: 1.4rem;
  color: #4a4a4a;
}

.hero-image {
  width: 100%;
  height: 78vh;
  object-fit: cover;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 34px;
  align-items: start;
}

.obra {
  text-align: center;
  break-inside: avoid;
  margin-bottom: 54px;
}

.obra img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: 0.5s ease;
  background: transparent;
}

.obra img:hover {
  transform: scale(1.02);
}

.obra-titulo {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: normal;
  line-height: 1.25;
}

.obra-tecnica {
  margin-top: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
}

.obra-medidas {
  margin-top: 3px;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.4;
}

.gallery-indicator,
.media-gallery-indicator {
  display: block;
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #777;
}

.info {
  background: #e9e3dc;
}

.info-list {
  max-width: 850px;
  border-top: 1px solid #c8c0b8;
}

.info-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid #c8c0b8;
}

.info-item span {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  color: #777;
}

.info-item p {
  white-space: pre-line;
}
.project-header ~ section .text-content p {
    text-align: justify;
}

/* ---------- VÍA CRUCIS ---------- */

.via-estaciones {
  max-width: 1200px;
  margin: 0 auto;
}

.estacion-con-imagen {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
  border-top: 1px solid #d8d1c9;
  padding: 80px 0;
}

.estacion-imagen {
  display: flex;
  justify-content: center;
  align-items: center;
}

.estacion-imagen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.estacion-texto h3 {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 14px;
}

.biblia-ref {
  margin-top: 28px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: #777;
}

.estacion-texto blockquote {
  margin-top: 12px;
  font-style: italic;
  color: #444;
  line-height: 1.7;
}

.abrir-contrapunto {
  margin-top: 24px;
  background: none;
  border: 1px solid #cfc7bf;
  padding: 10px 18px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: #48635c;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.abrir-contrapunto:hover {
  background: #48635c;
  border-color: #48635c;
  color: #f6f3ef;
}

.contrapunto-local {
  display: none;
  margin-top: 32px;
  padding: 34px 38px;
  background: #eee8e1;
}

.contrapunto-local.activo {
  display: block;
}

.contrapunto-local h4 {
  font-weight: normal;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 20px;
}

.contrapunto-local p {
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: 20px;
}

.contrapunto-local .autor {
  margin-bottom: 0;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: #777;
}

@media (max-width: 900px) {
  .estacion-con-imagen {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ======================================================
   08. SERIES INFLUIR
====================================================== */

.series-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 70px;
}

.serie-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.serie-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.serie-card:hover img {
  transform: scale(1.025);
  filter: contrast(1.05);
}

.serie-content h2 {
  font-weight: normal;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 22px;
}

.serie-content p {
  font-size: 1.05rem;
  color: #555;
  max-width: 430px;
  margin-bottom: 24px;
}

.serie-content span {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  color: #777;
}

.series-nav {
  border-top: 1px solid #d9d2cb;
  border-bottom: 1px solid #d9d2cb;
  background: #f2eee8;
}

.series-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.series-links a {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: #777;
  transition: opacity 0.25s ease;
}

.series-links a:hover {
  opacity: 0.55;
}

.series-links .serie-activa {
  color: #1f1f1f;
  font-weight: 600;
  pointer-events: none;
}


/* ======================================================
   09. MEDIA
====================================================== */

.media-intro {
  padding-top: 120px !important;
  padding-bottom: 10px !important;
}

#media-contenido {
  padding-top: 10px !important;
}

#media-contenido .media-section:first-child {
  margin-top: 0 !important;
}

.media-section {
  margin-top: 30px;
  margin-bottom: 70px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}

.media-card {
  display: block;
  background: rgba(255, 255, 255, 0.38);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  opacity: 0.86;
}

.media-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  background: transparent;
}

.media-card-content {
  padding: 22px 0;
}

.media-type {
  display: block;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  color: #777;
}

.media-card h3 {
  font-weight: normal;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.media-card p {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: #777;
}


/* ======================================================
   10. CONTACTO Y FOOTER
====================================================== */

.contacto-section {
  min-height: 100vh;
}

.contacto-section p {
  max-width: 650px;
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 25px;
}

.contacto-section a {
  color: #48635c;
  border-bottom: 1px solid #48635c;
}

.social-links {
  margin: 35px 0 50px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  width: fit-content;
}

.contact-form {
  max-width: 700px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #c9c2ba;
  background: transparent;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  background: transparent;
  color: #1f1f1f;
  border: 1px solid #c9c2ba;
  padding: 14px 28px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #48635c;
  color: white;
  border-color: #48635c;
}

footer {
  padding: 28px 7vw;
  background: #1f1f1f;
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
}


/* ======================================================
   11. LIGHTBOX
   Usado en Media para lectura ampliada de recortes/reseñas.
====================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 32px;
  overflow: hidden;
}

.lightbox.activo {
  display: flex !important;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease;
  user-select: none;
  cursor: zoom-in;
}

.lightbox-cerrar {
  position: fixed;
  top: 24px;
  right: 32px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-flecha {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: white;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.lightbox-flecha:hover {
  opacity: 1;
}

.lightbox-anterior {
  left: 32px;
}

.lightbox-siguiente {
  right: 32px;
}

.lightbox-contador {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  z-index: 10000;
}

body.lightbox-abierto {
  overflow: hidden;
  transform: none !important;
}


/* ======================================================
   12. CARRUSEL
   Usado en Otros trabajos, sin zoom de rueda.
====================================================== */

.carrusel {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 32px;
  overflow: hidden;
}

.carrusel.activo {
  display: flex;
}

.carrusel img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
}

.carrusel-cerrar {
  position: fixed;
  top: 24px;
  right: 32px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
}

.carrusel-flecha {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: white;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.carrusel-flecha:hover {
  opacity: 1;
}

.carrusel-anterior {
  left: 32px;
}

.carrusel-siguiente {
  right: 32px;
}

.carrusel-contador {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  z-index: 10000;
}


/* ======================================================
   13. RESPONSIVE
====================================================== */

@media (max-width: 900px) {

  nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-grid,
  .project-grid,
  .text-grid,
  .info-item {
    grid-template-columns: 1fr;
  }

  .portada {
    padding-top: 80px;
  }

  .project-card img {
    height: 420px;
  }

  .project-header {
    padding-top: 80px;
  }

  .hero-image {
    height: 55vh;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .obra img {
    height: auto;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .serie-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .serie-card img {
    height: auto;
  }
}
