/* ===================================================================
   EL ALCÁZAR DE LA TRAICIÓN - SITIO WEB OFICIAL (AÑO 1487)
   Estilos Medievales / Góticos para Landing Page y Cloudflare Pages
   =================================================================== */

:root {
    --bg-dark: #0c0a08;
    --bg-card: rgba(23, 20, 16, 0.92);
    --bg-card-hover: rgba(33, 28, 22, 0.97);
    --bg-parchment: #f4ecd8;
    --text-primary: #f2ede4;
    --text-muted: #b9afa0;
    --gold-primary: #d4af37;
    --gold-bright: #ffd700;
    --gold-dark: #8c7126;
    --crimson: #8b1515;
    --crimson-light: #b32020;
    --border-gold: 1px solid rgba(212, 175, 55, 0.35);
    --border-gold-strong: 2px solid #d4af37;
    --shadow-epic: 0 12px 35px rgba(0, 0, 0, 0.7);
    --font-heading: 'Cinzel', serif;
    --font-decorative: 'Cinzel Decorative', 'Cinzel', serif;
    --font-gothic: 'MedievalSharp', cursive, serif;
    --font-body: 'Almendra', Georgia, serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 21, 21, 0.06) 0%, transparent 50%),
        linear-gradient(to bottom, #070605 0%, #0d0b09 40%, #080706 100%);
    background-attachment: fixed;
}

/* Antorchas / Brillo de ambiente */
.torch-glow-left, .torch-glow-right {
    position: fixed;
    top: 20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
    opacity: 0.15;
    animation: torchFlicker 4s infinite alternate ease-in-out;
}
.torch-glow-left {
    left: -100px;
    background: radial-gradient(circle, #ff9900, #8b1515);
}
.torch-glow-right {
    right: -100px;
    top: 60%;
    background: radial-gradient(circle, #ffaa33, #8c7126);
    animation-delay: 2s;
}

@keyframes torchFlicker {
    0% { opacity: 0.12; transform: scale(0.95); }
    50% { opacity: 0.18; transform: scale(1.05); }
    100% { opacity: 0.14; transform: scale(1); }
}

/* Envoltorio principal */
.site-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================================================
   BARRA DE NAVEGACIÓN SUPERIOR
   =================================================================== */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(12, 10, 8, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
}

.crest-icon-small {
    width: 58px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.4));
    transition: transform 0.25s ease;
}

.brand-logo:hover .crest-icon-small {
    transform: scale(1.06);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-bright);
    line-height: 1.2;
}

.brand-text span {
    font-family: var(--font-gothic);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s ease, text-shadow 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #a71919 0%, #680d0d 100%);
    border: 1px solid #ffd700;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(167, 25, 25, 0.5);
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4) !important;
}

/* Botón Hamburguesa Móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold-bright);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===================================================================
   HERO SECTION (PORTADA PRINCIPAL)
   =================================================================== */
.hero-section {
    position: relative;
    padding: 90px 0 110px 0;
    background: linear-gradient(to bottom, rgba(12, 10, 8, 0.4) 0%, rgba(12, 10, 8, 0.85) 85%, var(--bg-dark) 100%),
                url('../bg.png') center/cover no-repeat;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(139, 21, 21, 0.4);
    border: 1px solid var(--gold-primary);
    padding: 6px 18px;
    border-radius: 30px;
    font-family: var(--font-gothic);
    font-size: 0.95rem;
    color: #ffe66d;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-logo-box {
    margin: 0 auto 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-main {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.25));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-logo-main:hover {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
}

.hero-title {
    font-family: var(--font-decorative);
    font-size: 3.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fffdf5;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.4);
    margin-bottom: 12px;
    line-height: 1.15;
}

.hero-latin-motto {
    font-style: italic;
    color: var(--gold-bright);
    font-size: 1.2rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.25rem;
    color: #ddd4c7;
    margin-bottom: 38px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Botones con estilo medieval */
.btn-primary-medieval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #a71919 0%, #680d0d 100%);
    border: 2px solid #ffd700;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px 36px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(167, 25, 25, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary-medieval:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff;
    border-color: #fff;
}

.btn-secondary-medieval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(23, 20, 16, 0.85);
    border: 2px solid var(--gold-primary);
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 30px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary-medieval:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
    border-color: var(--gold-bright);
    transform: translateY(-2px);
}

.btn-crowdfund-medieval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1b3d2f 0%, #11281f 100%);
    border: 2px solid #52b788;
    color: #e8f5e9;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 30px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(27, 61, 47, 0.6);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-crowdfund-medieval:hover {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b3d2f 100%);
    border-color: #74c69d;
    transform: translateY(-2px);
}

.hero-highlights-strip {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-item span {
    color: var(--gold-primary);
}

/* ===================================================================
   DIVISOR HERÁLDICO
   =================================================================== */
.parchment-crest-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto 40px auto;
    max-width: 600px;
}

.parchment-crest-divider::before,
.parchment-crest-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.parchment-crest-divider .divider-crest {
    padding: 0 20px;
    color: var(--gold-bright);
    font-size: 1.4rem;
}

/* ===================================================================
   TÍTULOS DE SECCIÓN
   =================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-tagline {
    font-family: var(--font-gothic);
    font-size: 1rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-subtitle {
    max-width: 720px;
    margin: 16px auto 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ===================================================================
   SECCIÓN 1: DE QUÉ VA (LA HISTORIA Y EL MISTERIO)
   =================================================================== */
.story-section {
    padding: 80px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.story-parchment-box {
    background: #191512;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 36px;
    box-shadow: var(--shadow-epic);
    position: relative;
}

.story-parchment-box::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px dashed rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.story-parchment-box h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gold-bright);
    margin-bottom: 18px;
}

.story-parchment-box p {
    font-size: 1.15rem;
    color: #ded7cc;
    margin-bottom: 16px;
    text-align: justify;
}

.story-highlight-quote {
    border-left: 3px solid var(--crimson-light);
    padding-left: 18px;
    font-style: italic;
    color: #ffd8a8;
    margin: 20px 0;
    font-size: 1.1rem;
}

.story-visual-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gold-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.story-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.story-visual-card:hover img {
    transform: scale(1.03);
}

.story-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(10, 8, 6, 0.95), transparent);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--gold-bright);
}

/* Tarjetas de Personajes */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.character-card {
    background: var(--bg-card);
    border: var(--border-gold);
    border-radius: 6px;
    padding: 24px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
    background: var(--bg-card-hover);
}

.character-card .char-role {
    font-family: var(--font-gothic);
    font-size: 0.85rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.character-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin: 4px 0 12px 0;
}

.character-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ===================================================================
   SECCIÓN 2: CÓMO JUGAR (MECÁNICAS Y CONTROLES)
   =================================================================== */
.howtoplay-section {
    padding: 80px 0;
    background: rgba(18, 15, 12, 0.5);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.controls-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.control-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.keys-visual {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.key-badge {
    background: #2a241c;
    border: 1px solid #c99e32;
    border-bottom: 3px solid #7c621d;
    color: #fffae8;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.control-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gold-bright);
    margin-bottom: 8px;
}

.control-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Reglas del Alcázar */
.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.rule-box {
    background: #14110e;
    border-left: 4px solid var(--gold-primary);
    padding: 22px 24px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.rule-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.rule-box p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ===================================================================
   SECCIÓN 3: DONAR (EN LA PÁGINA DE INICIO)
   =================================================================== */
.donate-section {
    padding: 85px 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.donate-panel {
    background: linear-gradient(145deg, #181410 0%, #120f0d 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    padding: 45px 36px;
    max-width: 880px;
    margin: 0 auto;
    box-shadow: 0 15px 45px rgba(0,0,0,0.8), 0 0 25px rgba(212, 175, 55, 0.2);
    text-align: center;
}

.donate-panel h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-bright);
    margin-bottom: 12px;
}

.donate-panel p.donate-intro {
    font-size: 1.15rem;
    color: #e0d6c5;
    max-width: 680px;
    margin: 0 auto 30px auto;
}

/* Botones de Selección de Cantidad */
.amount-selector-title {
    font-family: var(--font-gothic);
    font-size: 1.1rem;
    color: var(--gold-primary);
    margin-bottom: 14px;
}

.amounts-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.amount-btn {
    background: #251f18;
    border: 1px solid var(--gold-dark);
    color: #fffae8;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover, .amount-btn.active {
    background: var(--gold-primary);
    color: #120e0a;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.custom-amount-input {
    background: #251f18;
    border: 1px solid var(--gold-dark);
    color: #ffd700;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 6px;
    width: 140px;
    text-align: center;
    outline: none;
}
.custom-amount-input:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* Pasarelas de Donación */
.payment-gateways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.gateway-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gateway-btn.paypal {
    background: #0070ba;
    color: #ffffff;
}
.gateway-btn.paypal:hover {
    background: #005ea6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.5);
}

.gateway-btn.kofi {
    background: #ff5e5b;
    color: #ffffff;
}
.gateway-btn.kofi:hover {
    background: #e54b48;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 94, 91, 0.5);
}

.gateway-btn.buymeacoffee {
    background: #ffdd00;
    color: #000000;
}
.gateway-btn.buymeacoffee:hover {
    background: #e6c700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.5);
}

.gateway-btn.bizum {
    background: #00b0ca;
    color: #ffffff;
}
.gateway-btn.bizum:hover {
    background: #009cb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 176, 202, 0.5);
}

.donate-guarantee-note {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===================================================================
   SECCIÓN 4: CROWDFUNDING (PARTE II - LAS CATACUMBAS DEL TRAIDOR)
   =================================================================== */
.crowdfunding-section {
    padding: 85px 0;
    background: rgba(14, 18, 15, 0.6);
    border-top: 1px solid rgba(82, 183, 136, 0.3);
    border-bottom: 1px solid rgba(82, 183, 136, 0.3);
}

.crowdfund-banner {
    background: linear-gradient(135deg, rgba(23, 33, 27, 0.95) 0%, rgba(13, 20, 16, 0.95) 100%);
    border: 2px solid #52b788;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 20px rgba(82, 183, 136, 0.2);
}

.crowdfund-header-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.crowdfund-info h3 {
    font-family: var(--font-decorative);
    font-size: 2.2rem;
    color: #d8f3dc;
    margin-bottom: 10px;
}

.crowdfund-info p {
    font-size: 1.15rem;
    color: #b7e4c7;
    margin-bottom: 15px;
}

.crowdfund-stats {
    background: rgba(8, 14, 10, 0.7);
    border: 1px solid #40916c;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: #95d5b2;
    font-weight: 700;
}

.stat-label {
    font-size: 0.95rem;
    color: #74c69d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Barra de Progreso */
.crowdfund-progress-wrapper {
    margin-top: 15px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #d8f3dc;
    margin-bottom: 8px;
}

.progress-bar-track {
    width: 100%;
    height: 22px;
    background: #0f1c14;
    border: 1px solid #52b788;
    border-radius: 11px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.7);
}

.progress-bar-fill {
    height: 100%;
    width: 52%;
    background: linear-gradient(90deg, #2d6a4f, #52b788, #74c69d);
    border-radius: 11px;
    position: relative;
    box-shadow: 0 0 15px rgba(116, 198, 157, 0.6);
    transition: width 1.2s ease-in-out;
}

/* Tiers / Niveles de Recompensa */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.tier-card {
    background: rgba(18, 26, 21, 0.9);
    border: 1px solid #40916c;
    border-radius: 8px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
}

.tier-card.featured {
    border: 2px solid #74c69d;
    background: rgba(22, 34, 27, 0.95);
    box-shadow: 0 8px 30px rgba(82, 183, 136, 0.25);
}

.tier-card.featured::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: -12px;
    right: 20px;
    background: #52b788;
    color: #081c15;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.tier-card:hover {
    transform: translateY(-5px);
    border-color: #95d5b2;
    box-shadow: 0 10px 30px rgba(82, 183, 136, 0.3);
}

.tier-header {
    border-bottom: 1px solid rgba(82, 183, 136, 0.3);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.tier-badge {
    font-family: var(--font-gothic);
    font-size: 0.85rem;
    color: #74c69d;
    text-transform: uppercase;
}

.tier-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    margin: 4px 0 10px 0;
}

.tier-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #b7e4c7;
}

.tier-rewards-list {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tier-rewards-list li {
    font-size: 1.05rem;
    color: #d8f3dc;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.tier-rewards-list li::before {
    content: '⚔';
    position: absolute;
    left: 0;
    color: #52b788;
    font-size: 0.85rem;
}

.tier-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: #2d6a4f;
    border: 1px solid #74c69d;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.tier-btn:hover {
    background: #40916c;
}

/* ===================================================================
   SECCIÓN 5: PLANO Y EXPLORACIÓN DEL ALCÁZAR
   =================================================================== */
/* ===================================================================
   SECCIÓN 5: PLANO Y EXPLORACIÓN INTERACTIVA CON ZOOM
   =================================================================== */
.map-section {
    padding: 80px 0;
}

.map-card-wrapper {
    background: #15110d;
    border: 2px solid var(--gold-dark);
    border-radius: 8px;
    padding: 0;
    box-shadow: var(--shadow-epic), 0 0 25px rgba(212, 175, 55, 0.15);
    overflow: hidden;
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
}

/* Modo Pantalla Completa nativo */
.map-card-wrapper:fullscreen,
.map-card-wrapper:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    background: #050403;
}

/* Barra de herramientas superior */
.map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #221b14 0%, #15110d 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 5;
    position: relative;
}

.map-toolbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--gold-bright);
    letter-spacing: 1px;
}

.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #52b788;
    box-shadow: 0 0 8px #52b788;
}

.map-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #231b14;
    border: 1px solid var(--gold-dark);
    color: #fffae8;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.map-btn:hover {
    background: var(--gold-primary);
    color: #120e0a;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.map-btn:active {
    transform: scale(0.96);
}

.map-zoom-level {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-bright);
    background: #0a0806;
    border: 1px solid #7c621d;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

/* Área visible / Viewport del plano */
.map-viewport {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    background-color: #080605;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        linear-gradient(#14100c 1px, transparent 1px),
        linear-gradient(90deg, #14100c 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.map-viewport:active {
    cursor: grabbing;
}

.map-card-wrapper:fullscreen .map-viewport,
.map-card-wrapper:-webkit-full-screen .map-viewport {
    flex: 1;
    height: auto;
}

/* Escenario transformable donde reside la imagen */
.map-stage {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.map-stage img {
    display: block;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.map-overlay-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(12, 10, 8, 0.88);
    backdrop-filter: blur(4px);
    border: 1px solid var(--gold-primary);
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: opacity 0.5s ease;
}

/* Pie de ayuda del visor */
.map-footer-help {
    background: #0f0c09;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px 20px;
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.main-footer {
    background: #080605;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding: 60px 0 30px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold-bright);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 440px;
}

.footer-links h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--gold-bright);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
    color: #7d7568;
}

.cf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f6821f;
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

/* ===================================================================
   MODAL DE DONACIÓN / MECENAZGO
   =================================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal-content {
    background: #16120e;
    border: 2px solid var(--gold-primary);
    border-radius: 10px;
    width: 100%;
    max-width: 580px;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    color: var(--gold-bright);
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--gold-bright);
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.modal-field {
    margin-bottom: 18px;
}

.modal-field label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.modal-field input, .modal-field textarea {
    width: 100%;
    background: #221c16;
    border: 1px solid var(--gold-dark);
    color: #fffae8;
    padding: 10px 14px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
}

.modal-field input:focus, .modal-field textarea:focus {
    border-color: var(--gold-bright);
}

/* ===================================================================
   RESPONSIVIDAD MÓVIL
   =================================================================== */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .story-grid {
        grid-template-columns: 1fr;
    }
    .crowdfund-header-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #110e0b;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--gold-dark);
    }
    .main-nav.mobile-open {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions a {
        width: 100%;
    }
}
