@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;900&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --ink: #1c1712;
  --cream: #f7f1e6;
  --gold: #c9a24b;
  --gold-deep: #8f6b1f;
  --wine: #5c1a1a;
  --wine-deep: #3c0f10;
  --line: rgba(28, 23, 18, .14);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 23, 18, .94);
  backdrop-filter: blur(6px);
  color: var(--cream);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 1.05rem;
  color: var(--gold);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .85;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}

nav a:hover {
  opacity: 1;
  border-color: var(--gold);
}

nav a.private {
  color: var(--gold);
  opacity: 1;
  font-weight: 600;
}

.burger {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

@media(max-width:820px) {
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ink);
    padding: 1rem 1.5rem;
    gap: .9rem;
    display: none;
  }

  nav ul.open {
    display: flex;
  }

  .burger {
    display: block;
  }
}

/* ---------- HOLA / HERO ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 23, 18, .15) 0%, rgba(28, 23, 18, .55) 60%, rgba(28, 23, 18, .92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}

.hero-inner .eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

.hero-inner blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin: 0 0 1.2rem;
  line-height: 1.35;
}

.hero-inner cite {
  display: block;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--gold);
}

/* ---------- SECTION SHELL ---------- */
section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 .6rem;
  text-align: center;
  color: var(--wine-deep);
}

p.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.6rem;
  color: var(--gold-deep);
  font-size: .95rem;
  letter-spacing: .02em;
}

/* ---------- AGENDA (galería de eventos) ---------- */
.agenda {
  background: var(--cream);
}

.agenda-grid {
  display: grid;
  grid-template-columns: 60%;
  justify-content: center;
  /*gap: 1.8rem;*/
  margin: 0 auto;
}

.agenda-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(28, 23, 18, .06);
  transition: transform .2s, box-shadow .2s;
}

.agenda-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28, 23, 18, .12);
}

.agenda-card img {
  width: 100%;
  object-fit: cover;
}

.agenda-card .agenda-caption {
  padding: 1rem 1.1rem;
}

.agenda-card .agenda-date {
  display: block;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .3rem;
}

.agenda-card .agenda-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  color: var(--wine-deep);
}

/* ---------- SERVICIOS ---------- */
.services {
  background: var(--ink);
  color: var(--cream);
}

.services h2 {
  color: var(--gold);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.2rem;
}

.service-card {
  text-align: center;
  padding: 2rem 1.4rem;
  border: 1px solid rgba(201, 162, 75, .25);
  border-radius: 4px;
  transition: transform .2s, border-color .2s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: rgba(201, 162, 75, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 .7rem;
  color: var(--cream);
}

.service-card p {
  font-size: .92rem;
  opacity: .82;
  margin: 0;
}

/* ---------- DIRECTOR ---------- */
.director {
  background: var(--cream);
}

.director-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.director-photo {
  position: relative;
}

.director-photo a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.director-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.director-photo .hint {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--gold-deep);
  margin-top: .6rem;
  font-style: italic;
}

.director-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 .3rem;
  color: var(--wine-deep);
  text-align: left;
}

.director-text .role {
  color: var(--gold-deep);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 1.2rem;
  display: block;
}

.director-text p {
  margin: 0 0 1rem;
  font-size: .98rem;
}

@media(max-width:760px) {
  .director-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .director-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .director-text h2 {
    text-align: center;
  }
}

/* ---------- CONTACTO ---------- */
.contacto {
  background: var(--cream);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(28, 23, 18, .08);
}

.contact-side {
  background: var(--wine-deep);
  color: var(--cream);
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.contact-side h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 .3rem;
}

.contact-side p {
  font-size: .92rem;
  opacity: .85;
  margin: 0;
}

.contact-info-img {
  background: var(--cream);
  border-radius: 6px;
  padding: .6rem;
  max-width: 260px;
  border: 1px solid rgba(201, 162, 75, .35);
}

.contact-side .socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-side .socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gold);
  font-size: .85rem;
  transition: background .2s;
}

.contact-side .socials a:hover {
  background: rgba(201, 162, 75, .15);
}

.contact-form {
  padding: 2.6rem 2.2rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .4rem;
  color: var(--gold-deep);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--cream);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%238f6b1f' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}

.field input[type="file"] {
  padding: .5rem .6rem;
  background: #fff;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  background: var(--wine-deep);
  color: var(--cream);
  border: 0;
  border-radius: 4px;
  padding: .5rem .9rem;
  margin-right: .8rem;
  cursor: pointer;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.field input[type="file"]::file-selector-button:hover {
  background: var(--wine);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border: 1px dashed var(--gold-deep);
  border-radius: 4px;
  padding: .8rem 1rem;
  margin-bottom: 1.1rem;
}

.captcha-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--wine-deep);
  white-space: nowrap;
}

.captcha-box input {
  flex: 1;
  min-width: 0;
}

.captcha-refresh {
  background: none;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  border-radius: 4px;
  padding: .35rem .6rem;
  cursor: pointer;
  font-size: .85rem;
}

.captcha-refresh:hover {
  background: var(--gold-deep);
  color: #fff;
}

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-btn {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--wine-deep);
  color: var(--cream);
  border: 0;
  border-radius: 4px;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}

.submit-btn:hover {
  background: var(--wine);
}

.submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.form-msg {
  margin-top: .9rem;
  font-size: .88rem;
  padding: .6rem .8rem;
  border-radius: 4px;
  display: none;
}

.form-msg.ok {
  display: block;
  background: #e4f3e6;
  color: #1e5b28;
}

.form-msg.err {
  display: block;
  background: #fbe4e4;
  color: #8a1f1f;
}

@media(max-width:760px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(247, 241, 230, .65);
  text-align: center;
  padding: 2.2rem 1.5rem;
  font-size: .85rem;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- EVENT PAGE (Gospeliando) ---------- */
.event-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: var(--wine-deep);
}

.event-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
}

.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 23, 18, .2) 0%, rgba(28, 23, 18, .6) 70%, rgba(28, 23, 18, .9) 100%);
}

.event-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}

.event-inner .eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

.event-inner h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  color: var(--cream);
}

.event-dates {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .05em;
  margin: 0;
}

.event-details {
  background: var(--cream);
  padding: 5rem 1.5rem;
}

.event-content {
  max-width: 800px;
  margin: 0 auto;
}

.event-content p,
.event-registration p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

.event-content strong,
.event-registration strong {
  color: var(--wine-deep);
}

.event-content a,
.event-registration a {
  color: var(--gold-deep);
  text-decoration: underline;
}

.event-content a:hover,
.event-registration a:hover {
  color: var(--gold);
}

.event-registration {
  max-width: 800px;
  margin: 1.5rem auto 0;
  padding: 1.5rem 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(28, 23, 18, .05);
}

.event-registration h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--wine-deep);
  margin: 0 0 1.2rem;
  text-align: center;
}

.event-highlights {
  margin: 2rem 0;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(28, 23, 18, .05);
}

.event-highlights h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--wine-deep);
  margin: 0 0 1.2rem;
  text-align: center;
}

.event-highlights ul {
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
}

.event-highlights li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink);
}

.event-highlights li:last-child {
  border-bottom: none;
}

.event-info-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(28, 23, 18, .05);
}

.event-info-box .info-column {
  text-align: center;
}

.event-info-box h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--wine-deep);
  margin: 0 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.event-info-box p {
  margin: 0;
  font-size: .95rem;
  color: var(--gold-deep);
}

.event-note {
  text-align: center;
  font-style: italic;
  color: var(--gold-deep);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--gold-deep);
}

.more-events {
  background: var(--cream);
  padding: 4rem 1.5rem;
  text-align: center;
}

.back-to-agenda {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .8rem 2rem;
  background: var(--wine-deep);
  color: var(--cream);
  border-radius: 4px;
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s;
}

.back-to-agenda:hover {
  background: var(--wine);
}

@media(max-width:760px) {
  .event-hero {
    min-height: 60vh;
  }
  
  .event-inner {
    padding: 2rem 1.5rem 2.5rem;
  }
  
  .event-inner h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
  
  .event-info-box {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .event-highlights ul {
    padding: 0 1rem;
  }
}