 /* ─── VARIABLES ─────────────────────────────────────── */
    :root {
      --rojo:    #0267c5;
      --oro:     #D4AF37;
      --oro-claro: #F0D060;
      --cafe:    #4A2C0A;
      --crema:   #FDF6E3;
      --verde:   #1A5276;
      --negro:   #1A1A1A;
      --sombra:  rgba(74,44,10,0.18);
    }

    /* ─── RESET ─────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'EB Garamond', Georgia, serif;
      background: var(--crema);
      color: var(--negro);
      overflow-x: hidden;
    }

    /* ─── HERO ───────────────────────────────────────────── */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;
      padding: 2rem 1rem 4rem;
    }

    /* Hero background image — CAMBIA esta URL por tu foto */
    .hero-bg {
      position: absolute; inset: 0;
      background:
        linear-gradient(to bottom, rgba(26,26,26,0.62) 0%, rgba(74,44,10,0.78) 100%),
        url('imagenes/sanbuenaventura2026.jpg') center/cover no-repeat;
      z-index: 0;
    }

    /* Patrón decorativo tipo bordado encima del hero */
    .hero-bg::after {
      content: '';
      position: absolute; inset: 0;
      background-image:
        radial-gradient(circle at 20% 20%, rgba(212,175,55,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192,57,43,0.12) 0%, transparent 50%);
      z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 780px;
    }

    .escudo {
      /* CAMBIA src por tu escudo o imagen */
      width: 250px;
      height: 250px;
      border-radius: 0;
      /*border: 3px solid var(--oro);*/
      object-fit: contain;
      /*margin-bottom: 1.4rem;
      box-shadow: 0 0 0 6px rgba(212,175,55,0.2);*/
    }

    .escudo-placeholder {
      width: 110px; height: 110px;
      border-radius: 50%;
      border: 3px solid var(--oro);
      background: rgba(212,175,55,0.15);
      display: flex; align-items: center; justify-content: center;
      font-size: 2.8rem;
      margin: 0 auto 1.4rem;
      box-shadow: 0 0 0 6px rgba(212,175,55,0.2);
    }

    .orla {
      color: var(--oro-claro);
      font-family: 'Cinzel', serif;
      font-size: clamp(0.65rem, 1.8vw, 0.85rem);
      letter-spacing: 0.35em;
      text-transform: uppercase;
      margin-bottom: 0.6rem;
    }

    .hero h1 {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: clamp(2rem, 6vw, 4.2rem);
      line-height: 1.1;
      color: #fff;
      text-shadow: 2px 4px 18px rgba(0,0,0,0.5);
      margin-bottom: 0.5rem;
    }

    .hero h1 span { color: var(--oro-claro); }

    .hero-sub {
      font-family: 'Playfair Display', serif;
      font-style: italic;
      font-size: clamp(1rem, 2.8vw, 1.45rem);
      color: rgba(255,255,255,0.88);
      margin-bottom: 1.6rem;
      letter-spacing: 0.04em;
    }

    .fechas-badge {
      display: inline-block;
      background: var(--rojo);
      color: #fff;
      font-family: 'Cinzel', serif;
      font-size: clamp(0.85rem, 2vw, 1.05rem);
      letter-spacing: 0.2em;
      padding: 0.55rem 2.2rem;
      border: 2px solid #59d8f8;
      border-radius: 2px;
      text-transform: uppercase;
      box-shadow: 0 4px 18px rgba(192,57,43,0.45);
    }

    .hero-decorline {
      width: 120px; height: 2px;
      background: linear-gradient(90deg, transparent, var(--oro), transparent);
      margin: 1.4rem auto;
    }

    .scroll-hint {
      position: absolute;
      bottom: 2rem; left: 50%;
      transform: translateX(-50%);
      z-index: 2;
      animation: bounce 2s infinite;
      color: var(--oro);
      font-size: 1.5rem;
    }
    @keyframes bounce {
      0%,100% { transform: translateX(-50%) translateY(0); }
      50%      { transform: translateX(-50%) translateY(8px); }
    }

    /* ─── SECCIÓN CRONOGRAMA ─────────────────────────────── */
    .cronograma {
      max-width: 1100px;
      margin: 0 auto;
      padding: 4rem 1.2rem 5rem;
    }

    .section-title {
      text-align: center;
      margin-bottom: 3rem;
    }
    .section-title .linea {
      display: flex; align-items: center; justify-content: center;
      gap: 1rem; margin-bottom: 0.5rem;
    }
    .section-title .linea::before,
    .section-title .linea::after {
      content: '';
      flex: 1; max-width: 120px;
      height: 1px; background: var(--oro);
    }
    .section-title h2 {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.4rem, 4vw, 2.4rem);
      color: var(--cafe);
      letter-spacing: 0.08em;
    }
    .section-title p {
      font-style: italic;
      color: #666;
      font-size: 1.05rem;
    }

    /* ─── GRID DE DÍAS ───────────────────────────────────── */
    .dias-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 2rem;
    }

    /* ─── CARD DE DÍA ────────────────────────────────────── */
    .dia-card {
      background: #fff;
      border-radius: 4px;
      overflow: hidden;
      box-shadow: 0 4px 24px var(--sombra);
      border: 1px solid rgba(212,175,55,0.2);
      transition: transform 0.25s, box-shadow 0.25s;
    }
    .dia-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 36px var(--sombra);
    }

    /* Franja superior con foto del día */
    .card-img-wrap {
      position: relative;
      height: 180px;
      overflow: hidden;
    }
    /* CAMBIA el fondo/imagen de cada día aquí ↓
       Se puede poner una imagen diferente por tarjeta
       usando la clase .dia-N { background-image: url('img/dia-N.jpg'); } */
    .card-img-wrap .bg {
      position: absolute; inset: 0;
      background: center/cover no-repeat;
      transition: transform 0.4s;
    }
    .dia-card:hover .card-img-wrap .bg { transform: scale(1.05); }

    /* Colores de respaldo si no hay imagen */
    .dia-1 .bg { background-color: #7B241C; background-image: url('imagenes/castillo.jpeg'); }
    .dia-2 .bg { background-color: #1A5276; background-image: url('imagenes/vacas-locas.jpg'); }
    .dia-3 .bg { background-color: #1E8449; background-image: url('imagenes/enbanderamiento.jpg'); }
    .dia-4 .bg { background-color: #784212; background-image: url('imagenes/polvora.jpg'); }
    .dia-5 .bg { background-color: #6C3483; background-image: url('imagenes/albaceras.jpg'); }
    .dia-6 .bg { background-color: #117A65; background-image: url('imagenes/image-dr-san-buenaventura.jpg'); }
    .dia-7 .bg { background-color: #C0392B; background-image: url('imagenes/personajes.jpeg'); }

    .card-img-wrap .overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.1) 60%);
    }
    .card-img-wrap .dia-label {
      position: absolute;
      bottom: 0.9rem; left: 1.1rem;
    }
    .dia-label .dia-nombre {
      display: block;
      font-family: 'Cinzel', serif;
      font-size: 1.15rem;
      font-weight: 600;
      color: #fff;
      text-shadow: 1px 2px 6px rgba(0,0,0,0.6);
    }
    .dia-label .dia-fecha {
      display: block;
      font-family: 'EB Garamond', serif;
      font-style: italic;
      color: var(--oro-claro);
      font-size: 0.92rem;
    }
    .card-img-wrap .emoji-icon {
      position: absolute;
      top: 0.85rem; right: 1rem;
      font-size: 1.8rem;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    }

    /* Cuerpo de la card */
    .card-body {
      padding: 1.2rem 1.3rem;
    }

    .evento-list {
      list-style: none;
      margin-bottom: 1.2rem;
    }
    .evento-list li {
      display: flex;
      gap: 0.75rem;
      align-items: flex-start;
      padding: 0.45rem 0;
      border-bottom: 1px solid rgba(212,175,55,0.15);
      font-size: 1.1rem;
      line-height: 1.4;
    }
    .evento-list li:last-child { border-bottom: none; }

    .hora {
      flex-shrink: 0;
      font-family: 'Cinzel', serif;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--rojo);
      width: 52px;
      padding-top: 2px;
    }
    .evento-desc { color: #333; }

    /* Botón "Agendar" */
    .btn-agendar {
      display: block;
      width: 100%;
      text-align: center;
      background: linear-gradient(135deg, var(--rojo), #033669);
      color: #fff;
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      padding: 0.7rem 1rem;
      border: none;
      border-radius: 2px;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.2s, transform 0.15s;
      box-shadow: 0 2px 10px rgba(192,57,43,0.3);
      margin-top: 0.1rem;
    }
    .btn-agendar:hover {
      background: linear-gradient(135deg, #033669, var(--rojo));
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(192,57,43,0.45);
    }
    .btn-agendar::before { content: '📅 '; }

    /* ─── GALERÍA / FOTOS ────────────────────────────────── */
    .galeria-section {
      background: var(--cafe);
      padding: 4rem 1.2rem;
      text-align: center;
    }
    .galeria-section .section-title h2 { color: var(--oro-claro); }
    .galeria-section .section-title .linea::before,
    .galeria-section .section-title .linea::after { background: rgba(212,175,55,0.5); }
    .galeria-section p { color: rgba(255,255,255,0.7); }

    .galeria-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 0.8rem;
      max-width: 1100px;
      margin: 2rem auto 0;
    }
    .galeria-item {
      /* CAMBIA src a tus fotos */
      aspect-ratio: 1;
      overflow: hidden;
      border-radius: 2px;
      border: 2px solid rgba(212,175,55,0.25);
    }
    .galeria-item img {
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.4s;
    }
    .galeria-item:hover img { transform: scale(1.07); }

    /* Placeholder cuando no hay imagen */
    .galeria-placeholder {
      width: 100%; height: 100%;
      background: rgba(255,255,255,0.07);
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.3);
      font-size: 2rem;
    }

    /* ─── FOOTER ─────────────────────────────────────────── */
    footer {
      background: var(--negro);
      color: rgba(255,255,255,0.6);
      text-align: center;
      padding: 2.5rem 1rem;
      font-size: 0.88rem;
    }
    footer strong { color: var(--oro); }
    .footer-viva {
      font-family: 'Cinzel', serif;
      font-size: 1.2rem;
      color: var(--oro-claro);
      margin-bottom: 0.5rem;
    }

    /* ─── MODAL AGENDADO ─────────────────────────────────── */
    .modal-backdrop {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.6);
      z-index: 999;
      align-items: center;
      justify-content: center;
    }
    .modal-backdrop.open { display: flex; }
    .modal-box {
      background: var(--crema);
      border: 2px solid var(--oro);
      border-radius: 4px;
      padding: 2.5rem 2rem;
      max-width: 420px;
      width: 90%;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0,0,0,0.4);
      animation: popIn 0.25s ease;
    }
    @keyframes popIn {
      from { transform: scale(0.88); opacity: 0; }
      to   { transform: scale(1);    opacity: 1; }
    }
    .modal-box h3 {
      font-family: 'Cinzel', serif;
      color: var(--cafe);
      margin-bottom: 0.5rem;
      font-size: 1.3rem;
    }
    .modal-box p { color: #555; margin-bottom: 1.5rem; font-size: 0.95rem; }

    .modal-opciones {
      display: flex; flex-direction: column; gap: 0.8rem;
    }
    .modal-opciones a {
      display: block;
      padding: 0.7rem 1.2rem;
      border-radius: 2px;
      text-decoration: none;
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      letter-spacing: 0.1em;
      transition: opacity 0.2s;
    }
    .modal-opciones a:hover { opacity: 0.85; }
    .btn-gcal  { background: #4285F4; color: #fff; }
    .btn-apple { background: #1C1C1E; color: #fff; }
    .btn-ics   { background: var(--rojo); color: #fff; }
    .btn-close {
      margin-top: 0.8rem;
      background: none; border: 1px solid #ccc;
      color: #666; padding: 0.5rem 1.2rem;
      cursor: pointer; border-radius: 2px;
      font-family: 'EB Garamond', serif; font-size: 0.95rem;
      transition: border-color 0.2s;
    }
    .btn-close:hover { border-color: var(--rojo); color: var(--rojo); }

    /* ─── RESPONSIVE ─────────────────────────────────────── */
    @media (max-width: 500px) {
      .dias-grid { grid-template-columns: 1fr; }
      .galeria-grid { grid-template-columns: repeat(2,1fr); }
    }
