/* ==========================================================
   PÁGINAS · Catálogo, Sobre mí y Contacto (mismo estilo que Acuarelas/Precios)
   Nota: base.css aplica `* { margin:0 !important; padding:0 !important }`,
   por eso aquí márgenes y paddings llevan !important.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --pg-bg: #fbf8f4;
  --pg-paper: #fdfcfa;
  --pg-white: #ffffff;
  --pg-text: #1f1d1b;
  --pg-body: #3f3b37;
  --pg-muted: #6f6b66;
  --pg-line: #e6ded4;
  --pg-accent: #a88a6c;
  --pg-shadow: 0 6px 22px rgba(60, 45, 30, .07);
  --pg-shadow-hover: 0 16px 36px rgba(60, 45, 30, .13);
  --pg-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --pg-sans: 'Inter', system-ui, sans-serif;
}

.pg {
  background: var(--pg-bg);
  padding-bottom: 80px !important;
}

/* ---------- Cabecera de página ---------- */
.pg-head {
  text-align: center;
  padding: 40px 16px 0 !important;
}

.pg-title {
  font-family: var(--pg-serif);
  font-weight: 400;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.05;
  color: var(--pg-text);
}

.pg-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: #bdb3a7;
  margin: 18px auto 16px !important;
}

.pg-sub {
  font-family: var(--pg-sans);
  font-size: 14px;
  letter-spacing: .24em;
  color: #4a4642;
}

/* Subtítulo de sección: "— Arte —" */
.pg-section {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1360px;
  margin: 56px auto 28px !important;
  padding: 0 40px !important;
  font-family: var(--pg-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--pg-text);
  white-space: nowrap;
}

.pg-section::before,
.pg-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pg-line);
}

/* Enlace con flecha */
.pg-link {
  display: inline-block;
  font-family: var(--pg-sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pg-accent) !important;
  text-decoration: none !important;
}

.pg-link span { display: inline-block; transition: transform .2s; }
.pg-link:hover span { transform: translateX(4px); }

/* Las tarjetas de boda dentro de Catálogo no llevan margen superior extra */
.pg .bodas-servicios { margin-top: 0 !important; }

/* ==========================================================
   CATÁLOGO · tarjetas de Arte
   ========================================================== */
.cat-arte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 1360px;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

.cat-card {
  display: grid;
  grid-template-columns: 55% 1fr;
  min-height: 320px;
  background: var(--pg-white);
  border-radius: 4px;
  box-shadow: var(--pg-shadow);
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease;
}

.cat-card:hover { transform: translateY(-4px); box-shadow: var(--pg-shadow-hover); }
.cat-card:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; }

.cat-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px !important;
  background: var(--pg-white);
  overflow: hidden;
}

.cat-card__img img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  transition: transform .6s ease;
}

.cat-card:hover .cat-card__img img { transform: scale(1.04); }

.cat-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 34px !important;
  background: var(--pg-paper);
  border-left: 1px solid #f0ebe4;
}

.cat-card__title {
  font-family: var(--pg-serif);
  font-style: italic;
  font-size: 38px;
  line-height: 1.1;
  color: var(--pg-text);
}

.cat-card__desc {
  margin-top: 12px !important;
  font-family: var(--pg-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--pg-muted);
}

.cat-card__cta {
  margin-top: 22px !important;
  font-family: var(--pg-sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

.cat-card__cta span { display: inline-block; transition: transform .2s; }
.cat-card:hover .cat-card__cta span { transform: translateX(4px); }

/* ==========================================================
   SOBRE MÍ
   ========================================================== */
.bio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 60px;
  max-width: 1240px;
  margin: 50px auto 0 !important;
  padding: 0 40px !important;
  align-items: start;
}

.bio-foto {
  position: sticky;
  top: 24px;
  background: var(--pg-white);
  padding: 14px !important;
  border-radius: 3px;
  box-shadow: var(--pg-shadow);
}

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

.bio-texto p {
  font-family: var(--pg-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--pg-body);
  margin-bottom: 20px !important;
}

.bio-texto .bio-lead {
  font-family: var(--pg-serif);
  font-size: 24px;
  line-height: 1.55;
  color: var(--pg-text);
}

.bio-cita {
  margin: 30px 0 34px !important;
  padding: 4px 0 4px 26px !important;
  border-left: 2px solid var(--pg-accent);
  font-family: var(--pg-serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1.4;
  color: var(--pg-text);
}

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 36px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--pg-line);
}

/* ==========================================================
   CONTACTO
   ========================================================== */
.contacto {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  max-width: 1240px;
  margin: 50px auto 0 !important;
  padding: 0 40px !important;
  align-items: stretch;
}

.contacto-foto {
  background: var(--pg-white);
  padding: 14px !important;
  border-radius: 3px;
  box-shadow: var(--pg-shadow);
}

.contacto-foto img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.contacto-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px !important;
  background: var(--pg-white);
  border-radius: 3px;
  box-shadow: var(--pg-shadow);
}

.contacto-intro {
  font-family: var(--pg-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--pg-text);
  margin-bottom: 30px !important;
}

.contacto-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contacto-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contacto-field {
  display: block;
  margin-bottom: 22px !important;
}

.contacto-field span {
  display: block;
  margin-bottom: 8px !important;
  font-family: var(--pg-sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pg-muted);
}

.contacto-field input,
.contacto-field textarea {
  width: 100%;
  padding: 12px 14px !important;
  border: 1px solid var(--pg-line);
  border-radius: 3px;
  background: var(--pg-paper);
  font-family: var(--pg-sans);
  font-size: 16px;
  color: var(--pg-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.contacto-field textarea { resize: vertical; min-height: 160px; line-height: 1.6; }

.contacto-field input:focus,
.contacto-field textarea:focus {
  border-color: #cbb9a7;
  background: var(--pg-white);
  box-shadow: 0 0 0 3px rgba(203, 185, 167, .22);
}

.contacto-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 6px !important;
}

.contacto-btn {
  padding: 15px 34px !important;
  border: 0;
  border-radius: 3px;
  background: var(--pg-text);
  color: #fff;
  font-family: var(--pg-sans);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.contacto-btn:hover { background: #3a3632; transform: translateY(-1px); }
.contacto-btn:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; }

/* ==========================================================
   EXPOSICIONES
   ========================================================== */
.expo-next-list,
.expo-timeline {
  max-width: 1360px;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

.expo-next-list { display: grid; gap: 22px; }

.expo-next {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--pg-white);
  border-radius: 4px;
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}

.expo-next--sin-img { grid-template-columns: 1fr; }

.expo-next__img { min-height: 320px; background: #f4efe9; }

.expo-next__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expo-next__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px !important;
  border-left: 3px solid var(--pg-accent);
}

.expo-next__date {
  font-family: var(--pg-sans);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

.expo-next__title {
  margin-top: 12px !important;
  font-family: var(--pg-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
  color: var(--pg-text);
}

.expo-next__desc {
  margin-top: 12px !important;
  font-family: var(--pg-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pg-body);
}

.expo-next__place {
  margin-top: 18px !important;
  font-family: var(--pg-sans);
  font-size: 14px;
  color: var(--pg-muted);
}

/* Línea de tiempo: año a la izquierda, tarjetas a la derecha */
.expo-year-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 30px;
  padding: 30px 0 !important;
  border-top: 1px solid var(--pg-line);
}

.expo-year-row:first-child { border-top: 0; padding-top: 0 !important; }

.expo-year {
  font-family: var(--pg-serif);
  font-size: 52px;
  line-height: 1;
  color: #bfae9c;
}

.expo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.expo-card {
  padding: 22px 24px !important;
  background: var(--pg-white);
  border-radius: 4px;
  box-shadow: var(--pg-shadow);
}

.expo-card__title {
  font-family: var(--pg-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  color: var(--pg-text);
}

.expo-card__meta {
  margin-top: 8px !important;
  font-family: var(--pg-sans);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

.expo-card__place {
  margin-top: 12px !important;
  font-family: var(--pg-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--pg-body);
}

.expo-card__city {
  margin-top: 2px !important;
  font-family: var(--pg-sans);
  font-size: 14px;
  color: var(--pg-muted);
}

.expo-empty {
  text-align: center;
  font-family: var(--pg-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--pg-muted);
}

@media (max-width: 1199px) {
  .expo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .expo-next-list, .expo-timeline { padding: 0 24px !important; }
  .expo-next { grid-template-columns: 1fr; }
  .expo-next__img { min-height: 0; height: 260px; }
  .expo-next__body { border-left: 0; border-top: 3px solid var(--pg-accent); padding: 28px !important; }
  .expo-year-row { grid-template-columns: 1fr; gap: 16px; }
  .expo-year { font-size: 44px; }
}

@media (max-width: 575px) {
  .expo-next-list, .expo-timeline { padding: 0 12px !important; }
  .expo-cards { grid-template-columns: 1fr; gap: 12px; }
  .expo-card { padding: 18px 18px !important; }
  .expo-next__body { padding: 22px 20px !important; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1199px) {
  .cat-card { grid-template-columns: 1fr; }
  .cat-card__body { border-left: 0; border-top: 1px solid #f0ebe4; }
  .cat-card__img img { max-height: 240px; }
}

@media (max-width: 991px) {
  .pg-section, .cat-arte { padding: 0 24px !important; }
  .bio, .contacto { grid-template-columns: 1fr; gap: 30px; padding: 0 24px !important; }
  .bio-foto { position: static; max-width: 520px; margin: 0 auto !important; }
  .contacto-foto img { min-height: 0; height: 320px; }
}

@media (max-width: 767px) {
  .cat-arte { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .pg-head { padding-top: 24px !important; }
  .pg-sub { font-size: 12px; letter-spacing: .16em; }
  .pg-section { padding: 0 12px !important; margin: 40px auto 20px !important; gap: 14px; }
  .cat-arte { padding: 0 12px !important; gap: 14px; }
  .cat-card__body { padding: 20px !important; }
  .cat-card__title { font-size: 30px; }

  .bio, .contacto { padding: 0 12px !important; margin-top: 30px !important; }
  .bio-texto .bio-lead { font-size: 21px; }
  .bio-cita { font-size: 23px; padding-left: 18px !important; }
  .bio-texto p { font-size: 15px; }

  .contacto-card { padding: 26px 20px !important; }
  .contacto-intro { font-size: 19px; }
  .contacto-row { grid-template-columns: 1fr; gap: 0; }
  .contacto-foto img { height: 240px; }
  .contacto-btn { width: 100%; }
  .contacto-actions { justify-content: center; }
}

/* ===== Contacto: aviso de envío ===== */
.contacto-aviso{
  margin:0 0 20px !important;
  padding:14px 16px !important;
  border-radius:10px;
  font-family:'Inter',sans-serif;
  font-size:15px;
  line-height:1.5;
  border:1px solid;
}
.contacto-aviso--ok{ background:#eef5ee; border-color:#b9d4b9; color:#2d5a2d; }
.contacto-aviso--error{ background:#fbeeee; border-color:#e3bcbc; color:#8a2c2c; }
#formulario{ scroll-margin-top:100px; }
