  :root {
    --gold:       #b8966e;
    --gold-light: #d4b896;
    --gold-dark:  #8b6840;
    --ivory:      #fdfaf4;
    --parchment:  #f5eed8;
    --warm-white: #fffef9;
    --ink:        #2a1f14;
    --ink-soft:   #5c4a35;
    --ink-faint:  #9c8870;
    --c1: #7c9bbf;
    --c2: #9b7fad;
    --c3: #c4996b;
    --c4: #6aab8e;
    --c5: #c47f9b;
    --c6: #c4896b;
    --c7: #8b6bbd;
    --c8: #c4ad3a;
  }

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

  body {
    font-family: 'Crimson Pro', Georgia, serif;
    color: var(--ink);
    min-height: 100vh;
    background: #f8f2e4;
    overflow-x: hidden;
  }

  /* ── Fondo de pergamino lujoso ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 100% 80% at 50% 0%,   rgba(212,184,150,0.35) 0%, transparent 55%),
      radial-gradient(ellipse 70%  60% at 0%  60%,   rgba(180,160,120,0.2)  0%, transparent 50%),
      radial-gradient(ellipse 80%  70% at 100% 80%,  rgba(200,175,135,0.25) 0%, transparent 55%),
      radial-gradient(ellipse 60%  50% at 50%  100%, rgba(190,165,125,0.2)  0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }

  /* Textura de papel fino */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
  }

  /* Bordes ornamentales de esquina */
  .corner-ornament {
    position: fixed;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
  }
  .corner-ornament.tl { top: 0; left: 0; }
  .corner-ornament.tr { top: 0; right: 0; transform: scaleX(-1); }
  .corner-ornament.bl { bottom: 0; left: 0; transform: scaleY(-1); }
  .corner-ornament.br { bottom: 0; right: 0; transform: scale(-1); }

  .wrapper {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px 100px;
  }

  /* ══ LITURGICAL HEADER BAR (IDIOMAS + TAMAÑO DE FUENTE) ══ */
  .liturgical-header {
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 -28px 0;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--liturgical-color), var(--liturgical-color-dark));
    border-bottom: 3px solid var(--liturgical-color-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideDown 0.6s cubic-bezier(0.22,1,0.36,1) both;
  }

  /* Colores litúrgicos */
  :root {
    --liturgical-color: #28a745;
    --liturgical-color-dark: #218838;
    --liturgical-color-accent: #1e7e34;
  }

  .liturgical-header.green {
    --liturgical-color: #28a745;
    --liturgical-color-dark: #218838;
    --liturgical-color-accent: #1e7e34;
  }

  .liturgical-header.purple {
    --liturgical-color: #7c3aed;
    --liturgical-color-dark: #6d28d9;
    --liturgical-color-accent: #5b21b6;
  }

  .liturgical-header.white {
    --liturgical-color: #f8f9fa;
    --liturgical-color-dark: #e9ecef;
    --liturgical-color-accent: #dee2e6;
  }

  .liturgical-header.red {
    --liturgical-color: #dc3545;
    --liturgical-color-dark: #c82333;
    --liturgical-color-accent: #bd2130;
  }

  .liturgical-header.rose {
    --liturgical-color: #e83e8c;
    --liturgical-color-dark: #d63384;
    --liturgical-color-accent: #c2185b;
  }

  .liturgical-header.gold {
    --liturgical-color: #ffc107;
    --liturgical-color-dark: #e0a800;
    --liturgical-color-accent: #d39e00;
  }

  /* Language buttons */
  .lang-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.05em;
  }

  .lang-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .lang-btn.active {
    background: rgba(255,255,255,0.95);
    color: var(--liturgical-color-dark);
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .lang-btn .flag {
    font-size: 1.1rem;
  }

  /* Font Size Control Buttons */
  .font-size-controls {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .font-size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
  }

  .font-size-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .font-size-btn:active {
    transform: translateY(0);
  }

  .font-size-separator {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.3);
    margin: 0 8px;
  }

  /* Ajustar el resto del layout */
  header {
    text-align: center;
    margin-bottom: 56px;
    margin-top: 44px;
    animation: fadeDown 1s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.1s;
  }

  /* ══ LANGUAGE SWITCHER (ELIMINAR - Ya no se usa) ══ */
  .lang-bar {
    display: none;
  }

  .header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(253,250,244,0.7);
    border: 1px solid rgba(184,150,110,0.4);
    border-radius: 50px;
    padding: 6px 22px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 22px;
    backdrop-filter: blur(4px);
  }

  /* Ornamento superior */
  .header-ornament {
    display: block;
    margin: 0 auto 16px;
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    opacity: 0.7;
  }

  h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: 0.01em;
  }

  h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-dark);
  }

  .subtitle {
    font-family: 'Crimson Pro', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ink-faint);
    margin-top: 14px;
    letter-spacing: 0.03em;
  }

  .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px auto;
    width: fit-content;
  }
  .divider::before, .divider::after {
    content: '';
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light));
  }
  .divider::after { transform: scaleX(-1); }
  .divider-cross {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
  }

  /* ══ SANTO DEL DÍA ══ */
  .saint-of-day {
    background: linear-gradient(145deg, var(--warm-white), var(--ivory));
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 48px;
    border: 1px solid rgba(184,150,110,0.3);
    box-shadow:
      0 4px 20px rgba(139,104,64,0.12),
      0 0 0 1px rgba(255,255,255,0.7) inset;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.2s;
  }

  .saint-of-day::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .saint-date-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(184,150,110,0.2);
  }

  .saint-weekday {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 6px;
  }

  .saint-full-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.02em;
  }

  .saint-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .saint-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
  }

  .saint-info {
    flex: 1;
    min-width: 200px;
  }

  .saint-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 6px;
  }

  .saint-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
  }

  .saint-name:hover {
    color: var(--gold);
    transform: translateX(4px);
  }

  .saint-name::after {
    content: '→';
    position: absolute;
    right: -24px;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .saint-name:hover::after {
    opacity: 1;
    right: -28px;
  }

  /* Botones de navegación del santo */
  .saint-nav-btn {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border: 1px solid var(--gold-dark);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 2px 8px rgba(139,104,64,0.2);
  }

  .saint-nav-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,104,64,0.3);
  }

  .saint-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(139,104,64,0.2);
  }

  /* Modal biografía del santo */
  .saint-bio-modal {
    position: fixed;
    inset: 0;
    background: rgba(42,31,20,0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
  }

  .saint-bio-modal.visible {
    opacity: 1;
    visibility: visible;
  }

  .saint-bio-content {
    background: linear-gradient(145deg, var(--warm-white), var(--ivory));
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid var(--gold-light);
    box-shadow: 0 20px 60px rgba(139,104,64,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .saint-bio-modal.visible .saint-bio-content {
    transform: scale(1);
  }

  .saint-bio-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(184,150,110,0.3);
    position: relative;
    background: linear-gradient(180deg, rgba(184,150,110,0.08), transparent);
  }

  .saint-bio-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--ink-soft);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .saint-bio-close:hover {
    background: rgba(184,150,110,0.2);
    color: var(--ink);
    transform: rotate(90deg);
  }

  .saint-bio-actions {
    position: absolute;
    top: 20px;
    right: 70px;
    display: flex;
    gap: 8px;
  }

  .saint-bio-action-btn {
    background: rgba(184,150,110,0.1);
    border: 1px solid rgba(184,150,110,0.25);
    color: var(--ink-faint);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
  }

  .saint-bio-action-btn:hover {
    background: rgba(184,150,110,0.22);
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: scale(1.1);
  }

  .saint-bio-action-btn.speaking {
    background: var(--gold);
    color: white;
    border-color: var(--gold-dark);
    animation: pulse 1.5s ease-in-out infinite;
  }

  .saint-bio-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 12px;
  }

  .saint-bio-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-align: center;
    margin-bottom: 8px;
  }

  .saint-bio-feast {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--ink-faint);
    text-align: center;
  }

  .saint-bio-body {
    padding: 28px 32px 32px;
  }

  .saint-bio-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 24px;
    text-align: justify;
  }

  .saint-bio-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(184,150,110,0.06);
    border-radius: 12px;
    border: 1px solid rgba(184,150,110,0.15);
  }

  .saint-date-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .saint-date-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .saint-date-value {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    color: var(--ink);
    font-weight: 500;
  }

  .saint-bio-quote {
    background: linear-gradient(145deg, rgba(255,255,249,0.9), rgba(253,250,244,0.7));
    border-left: 4px solid var(--gold);
    padding: 20px 24px;
    border-radius: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ink-soft);
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(139,104,64,0.08);
  }

  .saint-bio-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--gold-light);
    line-height: 0;
    display: block;
    margin-bottom: 8px;
  }

  /* ══ LECTURAS DEL DÍA ══ */
  .readings-of-day {
    background: linear-gradient(145deg, var(--warm-white), var(--ivory));
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 48px;
    border: 1px solid rgba(184,150,110,0.3);
    box-shadow:
      0 4px 20px rgba(139,104,64,0.12),
      0 0 0 1px rgba(255,255,255,0.7) inset;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.3s;
  }

  .readings-of-day::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b6840, transparent);
  }

  .readings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(184,150,110,0.2);
  }

  .readings-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
  }

  .readings-title-section {
    flex: 1;
  }

  .readings-actions {
    display: flex;
    gap: 8px;
  }

  .reading-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(184,150,110,0.3);
    background: rgba(253,250,244,0.8);
    color: var(--gold-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
  }

  .reading-action-btn:hover {
    background: var(--gold-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,104,64,0.2);
  }

  .reading-action-btn:active {
    transform: translateY(0);
  }

  .reading-action-btn.playing {
    background: var(--gold);
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }

  .readings-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
  }

  .readings-season {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-dark);
  }

  .readings-content {
    margin-bottom: 20px;
  }

  .reading-item {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(253,250,244,0.5);
    border-radius: 12px;
    border-left: 3px solid var(--gold);
  }

  .reading-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
  }

  .reading-reference {
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.6;
  }

  .reading-text {
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-top: 10px;
    font-style: italic;
  }

  .reading-loading {
    text-align: center;
    padding: 20px;
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    color: var(--ink-faint);
  }

  .loading-spinner {
    display: inline-block;
    animation: spin 2s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .readings-error {
    text-align: center;
    padding: 20px;
    color: #b44040;
    font-family: 'Crimson Pro', serif;
  }

  .readings-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(184,150,110,0.2);
  }

  .readings-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(184,150,110,0.1);
    border: 1px solid rgba(184,150,110,0.3);
    border-radius: 8px;
    color: var(--gold-dark);
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .readings-link:hover {
    background: rgba(184,150,110,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,104,64,0.15);
  }

  /* ══ GRID ══ */
  .folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
  }

  /* ══ FOLDER CARD ══ */
  .folder-card {
    background: linear-gradient(145deg, var(--warm-white), var(--ivory));
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.3s ease;
    border: 1px solid rgba(184,150,110,0.22);
    box-shadow:
      0 2px 8px rgba(139,104,64,0.08),
      0 0 0 1px rgba(255,255,255,0.7) inset;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
  }

  /* Línea superior dorada */
  .folder-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    border-radius: 16px 16px 0 0;
  }

  /* Acento lateral de color */
  .folder-card::after {
    content: '';
    position: absolute;
    top: 12px; left: 0; bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    opacity: 0.7;
  }

  .folder-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 16px 40px rgba(139,104,64,0.15),
      0 0 0 1px rgba(184,150,110,0.3),
      0 0 0 1px rgba(255,255,255,0.7) inset;
  }

  .folder-card:nth-child(1)::after { background: var(--c1); }
  .folder-card:nth-child(2)::after { background: var(--c2); }
  .folder-card:nth-child(3)::after { background: var(--c3); }
  .folder-card:nth-child(4)::after { background: var(--c4); }
  .folder-card:nth-child(5)::after { background: var(--c5); }
  .folder-card:nth-child(6)::after { background: var(--c6); }
  .folder-card:nth-child(7)::after { background: var(--c7); }
  .folder-card:nth-child(8)::after { background: var(--c8); }
  .folder-card:nth-child(9)::after { background: #6b9e7a; }

  .folder-card:nth-child(1) .folder-icon-wrap { background: linear-gradient(135deg,#eef3fa,#dce8f5); color: var(--c1); }
  .folder-card:nth-child(2) .folder-icon-wrap { background: linear-gradient(135deg,#f5eefa,#ede0f5); color: var(--c2); }
  .folder-card:nth-child(3) .folder-icon-wrap { background: linear-gradient(135deg,#faf3eb,#f5e6d4); color: var(--c3); }
  .folder-card:nth-child(4) .folder-icon-wrap { background: linear-gradient(135deg,#eaf6f0,#d5ede3); color: var(--c4); }
  .folder-card:nth-child(5) .folder-icon-wrap { background: linear-gradient(135deg,#faeef4,#f5dde9); color: var(--c5); }
  .folder-card:nth-child(6) .folder-icon-wrap { background: linear-gradient(135deg,#faf0eb,#f5e2d4); color: var(--c6); }
  .folder-card:nth-child(7) .folder-icon-wrap { background: linear-gradient(135deg,#f2eefa,#e6d8f5); color: var(--c7); }
  .folder-card:nth-child(8) .folder-icon-wrap { background: linear-gradient(135deg,#faf8e6,#f5f0c8); color: var(--c8); }
  .folder-card:nth-child(9) .folder-icon-wrap { background: linear-gradient(135deg,#e8f5ec,#d0edda); color: #6b9e7a; }

  .folder-header {
    padding: 20px 18px 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
  }

  .folder-icon-wrap {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(184,150,110,0.15);
  }

  .folder-text { flex: 1; min-width: 0; }

  .folder-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--ink);
    letter-spacing: 0.01em;
  }

  .folder-count {
    font-family: 'Raleway', sans-serif;
    font-size: 0.68rem;
    color: var(--ink-faint);
    margin-top: 3px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .folder-arrow {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(184,150,110,0.1);
    border: 1px solid rgba(184,150,110,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.65rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .folder-card.open .folder-arrow {
    transform: rotate(90deg);
    background: var(--gold);
    color: var(--ivory);
    border-color: var(--gold);
  }

  .prayer-list {
    display: none;
    border-top: 1px solid rgba(184,150,110,0.18);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: rgba(253,250,244,0.5);
  }

  .folder-card.open .prayer-list { display: block; }

  .prayer-item {
    padding: 11px 18px 11px 24px;
    border-bottom: 1px solid rgba(184,150,110,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.22s ease;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    color: var(--ink-soft);
  }

  .prayer-item:last-child { border-bottom: none; }

  .prayer-item:hover {
    background: rgba(184,150,110,0.08);
    color: var(--ink);
    padding-left: 30px;
  }

  .prayer-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(184,150,110,0.4);
    transition: background 0.2s;
  }

  .prayer-item:hover .prayer-dot { background: var(--gold); }

  /* ══ MODAL ══ */
  .prayer-display {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(30,20,10,0.6);
    backdrop-filter: blur(14px) saturate(1.3);
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .prayer-display.visible { display: flex; }

  .prayer-modal {
    background: linear-gradient(160deg, var(--warm-white) 0%, var(--ivory) 50%, var(--parchment) 100%);
    border-radius: 20px;
    max-width: 1400px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border: 1px solid rgba(184,150,110,0.35);
    box-shadow:
      0 40px 100px rgba(30,20,10,0.35),
      0 0 0 1px rgba(255,255,255,0.5) inset,
      inset 0 -1px 0 rgba(184,150,110,0.2);
    position: relative;
    animation: modalIn 0.45s cubic-bezier(0.34,1.4,0.64,1) both;
  }

  /* Ornamento superior del modal */
  .prayer-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 40px; right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  }

  /* Borde dorado superior */
  .modal-gold-bar {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold-light), var(--gold-dark), transparent);
    border-radius: 20px 20px 0 0;
  }

  .modal-header {
    padding: 26px 32px 18px;
    border-bottom: 1px solid rgba(184,150,110,0.18);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .modal-close {
    background: rgba(184,150,110,0.1);
    border: 1px solid rgba(184,150,110,0.25);
    color: var(--ink-faint);
    width: 34px; height: 34px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-family: 'Raleway', sans-serif;
  }

  .modal-close:hover {
    background: rgba(180,60,60,0.1);
    border-color: rgba(180,60,60,0.3);
    color: #b44040;
    transform: rotate(90deg);
  }

  .modal-print {
    background: rgba(184,150,110,0.1);
    border: 1px solid rgba(184,150,110,0.25);
    color: var(--ink-faint);
    width: 34px; height: 34px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.22s ease;
  }

  .modal-print:hover {
    background: rgba(184,150,110,0.22);
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: scale(1.1);
  }

  .modal-speak {
    background: rgba(184,150,110,0.1);
    border: 1px solid rgba(184,150,110,0.25);
    color: var(--ink-faint);
    width: 34px; height: 34px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.22s ease;
    font-size: 1rem;
  }

  .modal-speak:hover {
    background: rgba(184,150,110,0.22);
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: scale(1.1);
  }

  .modal-speak.speaking {
    background: var(--gold);
    color: white;
    border-color: var(--gold-dark);
    animation: pulse 1.5s ease-in-out infinite;
  }

  .modal-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

  /* ══ IMPRESIÓN ══ */
  @media print {
    body > *:not(#printArea) { display: none !important; }
    #printArea {
      display: flex !important;
      flex-direction: column;
      align-items: center;
      padding: 48px 64px;
      font-family: 'Cormorant Garamond', Georgia, serif;
    }
    .print-logo   { font-size: 1.3rem; color: #b8966e; letter-spacing: 0.3em; margin-bottom: 6px; }
    .print-badge  { font-family: Georgia, serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9c8870; margin-bottom: 18px; }
    .print-rule   { width: 180px; height: 1px; background: #b8966e; opacity: 0.45; margin: 0 auto 22px; }
    .print-title  { font-size: 2rem; font-weight: 600; color: #2a1f14; text-align: center; letter-spacing: 0.01em; margin-bottom: 6px; }
    .print-orn    { font-size: 0.65rem; letter-spacing: 0.5em; color: #b8966e; margin: 14px 0 22px; text-align: center; }
    .print-text   { font-size: 1.15rem; line-height: 2.1; color: #2a1f14; white-space: pre-line; text-align: center; max-width: 480px; }
    .print-text em { font-style: italic; color: #8b6840; }
    .print-footer  { margin-top: 36px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #9c8870; text-align: center; }
  }

  .modal-body { padding: 28px 32px 40px; }

  /* Ornamento superior del texto */
  .modal-body::before {
    content: '✦  ✦  ✦';
    display: block;
    text-align: center;
    color: var(--gold-light);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    margin-bottom: 22px;
  }

  .prayer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.22rem;
    line-height: 2.1;
    color: var(--ink);
    white-space: pre-line;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.01em;
  }

  .prayer-text em {
    color: var(--gold-dark);
    font-style: italic;
    font-weight: 500;
  }

  /* ══ LANG TRANSITION ══ */
  .lang-fade { animation: langSwitch 0.45s ease both; }

  @keyframes langSwitch {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* ══ ANIMATIONS ══ */
  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes langFade {
    from { opacity: 0; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
  }

  .lang-fade { animation: langFade 0.5s ease both; }

  /* ══ RESPONSIVE ══ */
  @media (max-width: 768px) {
    .liturgical-header {
      padding: 12px 20px;
      gap: 8px;
    }

    .lang-btn {
      padding: 6px 12px;
      font-size: 0.8rem;
    }

    .lang-btn span:not(.flag) {
      display: none;
    }

    .lang-btn .flag {
      font-size: 1.3rem;
    }

    .saint-of-day {
      padding: 20px 24px;
    }

    .saint-content {
      flex-direction: column;
      text-align: center;
    }

    .saint-icon {
      font-size: 2.2rem;
    }
  }

  .folder-card:nth-child(1) { animation-delay:.05s; }
  .folder-card:nth-child(2) { animation-delay:.11s; }
  .folder-card:nth-child(3) { animation-delay:.17s; }
  .folder-card:nth-child(4) { animation-delay:.23s; }
  .folder-card:nth-child(5) { animation-delay:.29s; }
  .folder-card:nth-child(6) { animation-delay:.35s; }
  .folder-card:nth-child(7) { animation-delay:.41s; }
  .folder-card:nth-child(8) { animation-delay:.47s; }
  .folder-card:nth-child(9) { animation-delay:.54s; }

  .prayer-modal::-webkit-scrollbar { width: 4px; }
  .prayer-modal::-webkit-scrollbar-track { background: transparent; }
  .prayer-modal::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 10px; }

  footer {
    text-align: center;
    margin-top: 70px;
    color: var(--ink-faint);
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  footer .footer-divider {
    width: 160px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    margin: 0 auto 16px;
  }
