/* --- Fuentes: si usas <link> en el HTML, NO repitas @import aquí.
   Si prefieres mantener el @import, corrige la URL y ponlo siempre al inicio: */
/* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap'); */

:root {
  --bg: #f5f1ea;
  --surface: #fffaf4;
  --text: #1f1b17;
  --muted: #6f655c;
  --accent: #a94c44;
  --accent-dark: #7f3833;
  --border: #ddd4c8;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

body {
  letter-spacing: 0.01em;
  line-height: 1.65;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Navbar */
.navbar {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}
.nav-link { color: var(--muted) !important; font-size: 0.95rem; }
.nav-link:hover,
.nav-link:focus-visible { color: var(--text) !important; }

/* Botones */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
}
.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.btn-outline-dark { border-radius: 999px; padding: 0.8rem 1.4rem; }

/* Foco accesible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Secciones */
.section-alt { background: var(--surface); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--muted);
  max-width: 42rem;
  font-size:1.1rem;
  letter-spacing: 0.1em;
}

/* Hero */
.hero {
  padding: 5rem 0;
  overflow: hidden;
}
.hero-left { position: relative; z-index: 3; }

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 0.92;
  margin: 0.25rem 0 2rem;
  position: relative;
  z-index: 4;
}

.hero-text {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-art {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}
.hero-art img {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  opacity: 0.92;
  border-radius: var(--radius);
}

/* En desktop: la imagen se solapa bajo el texto (con control) */
@media (min-width: 992px) {
  .hero-art {
    margin-left: -8rem;
    margin-top: 0;
  }
}

/* Cards */
.art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  margin: 0;
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--shadow);
}
.art-card .card-body { padding: 1.25rem; }
.art-card img { width: 100%; height: auto; display: block; }

.art-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.art-title18 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}

.art-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Links de contacto */
.link-accent {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.link-accent:hover { border-bottom-color: var(--accent); }

footer { background: var(--bg); }

.series-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.logoP {
  max-width: 20rem;
}

/* Para darle un poco de aire a las viñetas de los guiones */
.list-unstyled li {
  padding-left: 1rem;
  position: relative;
}
/* Opcional: si quieres que el guion sea un poco más sutil */

/* Compensación para el menú fijo (sticky-top) */
section[id] {
  scroll-margin-top: 120px; /* Ajusta este número según la altura de tu menú */
}

#divHr {
  margin: 2rem 0;
  border: 0;
  height: 2px; /* Un poco más grueso para que se note */
  background: linear-gradient(to right, transparent, #a94c44, transparent);
  opacity: 0.6;
  display: block; /* Fuerza a que se comporte como bloque */
  width: 100%;
}

/* Fondo sólido para el menú desplegable en Tablet/Móvil */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--bg); /* El color de fondo de tu web */
    border: 1px solid var(--border); /* Un borde sutil para delimitar */
    border-radius: 12px; /* Esquinas redondeadas */
    margin-top: 1rem; /* Un poco de separación de la barra superior */
    padding: 1rem; /* Espacio interno para que respire */
    box-shadow: 0 10px 30px var(--shadow); /* Una sombra para que flote sobre el contenido */
  }
}

/* Estilos para la sección Obra */
.obra-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.obra-card {
  background: #fff; /* Fondo blanco para que resalte sobre el beige */
  padding: 1rem; /* Marco blanco alrededor de la imagen */
  border-radius: 4px; /* Un borde muy sutil, no tan redondeado */
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Sombra muy suave */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.obra-card img {
  border-radius: 2px;
  aspect-ratio: 4 / 3; /* La caja siempre tendrá esta proporción */
  object-fit: contain; /* La imagen se ve entera, pero puede tener espacio blanco */
  background-color: #f9f9f9; /* Un fondo suave por si queda espacio */
}

/* Efecto al pasar el mouse (o tocar en tablet) */
.obra-link:hover .obra-card {
  transform: translateY(-5px); /* Se eleva un poquito */
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* La sombra crece */
}

/* El texto debajo de la imagen */
.obra-info {
  padding-top: 1.5rem;
  text-align: center;
}

.obra-info .art-title {
  margin-bottom: 0.2rem;
  font-size: 1.4rem;
}

.obra-info .art-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Estilos para la sección Técnica */
.tech-card {
  background: var(--bg); /* Usa el color beige del fondo para que sea más sutil */
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}

.tech-card:hover {
  border-color: var(--accent); /* Al pasar el mouse, el borde se tiñe de vino tinto */
}

.tech-card .art-title {
  font-size: 1.6rem;
  color: var(--accent); /* El título en color vino para destacar */
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

i { vertical-align:middle; }

.textP { font-family: 'Cormorant Garamond', serif; font-size:1.5rem; }

a {
  text-decoration: none;
}