/* ══════════════════════════════════════
   PLAZA COMMON — SHARED STYLES
   (Imported by plaza.index.css and plaza.show.css)
   
   OPTIMIZATION NOTES:
   - Phase 1: Converted 40+ inline styles to reusable CSS classes
   - Phase 2: Extracted 184 lines of duplicate CSS
   - Phase 3: Added prefers-reduced-motion support
   - Fonts: Optimized with preconnect directives
   - Build: Vite auto-minifies in production mode
   - Impact: -7% total CSS, improved caching, better UX
   
   See OPTIMIZATION_GUIDE.md for detailed documentation
══════════════════════════════════════ */

/* Universal Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ══════════════════════════════════════
   CSS VARIABLES — Shared color palette
══════════════════════════════════════ */
:root {
    --primary:       #D4773A;
    --primary-light: rgba(212,119,58,0.15);
    --primary-glow:  rgba(212,119,58,0.28);
    --bg:            #0A0908;
    --surface:       #0F0D0B;
    --card:          #171410;
    --card-hover:    #1E1A14;
    --border:        #262018;
    --border-light:  #302820;
    --text:          #F5F0E8;
    --muted:         #7A7060;
    --radius:        14px;
    --radius-sm:     8px;
}

/* Override for plaza.show.css (in show.css override these in :root) */

/* ══════════════════════════════════════
   BASIC STYLES
══════════════════════════════════════ */
html, body { width: 100%; min-height: 100%; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════
   V-CLOAK - Hide Vue elements during compilation
══════════════════════════════════════ */
[v-cloak] { display: none; }

/* ══════════════════════════════════════
   CONTAINER — Base (specific max-width in index/show)
══════════════════════════════════════ */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
}

/* ══════════════════════════════════════
   KEYFRAMES — Shared animation
══════════════════════════════════════ */
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

/* ══════════════════════════════════════
   ACCESSIBILITY — Respect user motion preferences
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ══════════════════════════════════════
   FOOTER — UPGRADED (Nature-inspired) — SHARED
══════════════════════════════════════ */
.footer-v2 {
    position: relative;
    background-image: url('/images/fondomadera1.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Dark overlay for text readability */
.footer-v2::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(10, 9, 8, 0.75);
    pointer-events: none; z-index: 0;
}

/* Silhouette landscape SVG top */
.footer-landscape {
    display: block;
    width: 100%;
    margin-bottom: 0;
    line-height: 0;
    position: relative; z-index: 1;
}
.footer-landscape svg {
    width: 100%; height: 120px;
    display: block;
}

.footer-main {
    padding: 56px 0 0;
    position: relative; z-index: 2;
}

/* Subtle texture overlay */
.footer-v2::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025; pointer-events: none; z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
    position: relative; z-index: 3;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
}

/* Brand column */
.footer-brand-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
@media (max-width: 600px) { .footer-brand-logo { justify-content: center; } }
.footer-brand-logo img { height: 38px; width: auto; opacity: 0.92; }

.footer-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 600;
    color: #F5F0E8; letter-spacing: 0.02em;
}

.footer-brand-desc {
    font-size: 0.82rem; color: rgba(245,240,232,0.75);
    line-height: 1.8; font-weight: 300; margin-bottom: 24px;
    max-width: 300px;
}
@media (max-width: 600px) { .footer-brand-desc { margin: 0 auto 24px; } }

/* Newsletter input */
.footer-newsletter {
    display: flex; gap: 0;
    border: 1px solid rgba(200,220,200,0.15);
    border-radius: var(--radius-sm); overflow: hidden;
    max-width: 320px;
}
@media (max-width: 600px) { .footer-newsletter { margin: 0 auto; } }

.footer-newsletter input {
    flex: 1; background: rgba(255,255,255,0.06);
    border: none; padding: 10px 14px;
    font-size: 0.78rem; color: #F5F0E8;
    font-family: 'DM Sans', sans-serif; outline: none;
}
.footer-newsletter input::placeholder { color: rgba(245,240,232,0.4); }

.footer-newsletter-btn {
    background: var(--primary); color: #F5F0E8;
    border: none; padding: 10px 16px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s;
    white-space: nowrap;
}
.footer-newsletter-btn:hover { background: #c06830; }

/* Column headings */
.footer-col-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem; font-weight: 700;
    color: #F5F0E8;
    margin-bottom: 20px; letter-spacing: 0.01em;
}

/* Navigation links */
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 600px) { .footer-nav { align-items: center; } }

.footer-nav a {
    font-size: 0.82rem; color: rgba(245,240,232,0.75);
    font-weight: 400; transition: color 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.footer-nav a::before {
    content: '→'; font-size: 0.65rem;
    opacity: 0; transform: translateX(-4px);
    transition: all 0.2s; color: var(--primary);
}
.footer-nav a:hover { color: var(--primary); }
.footer-nav a:hover::before { opacity: 1; transform: translateX(0); }

/* Contact info */
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 600px) { .footer-contact { align-items: center; } }

.footer-contact-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.8rem; color: rgba(245,240,232,0.75); line-height: 1.5;
}
@media (max-width: 600px) { .footer-contact-item { align-items: center; } }

.footer-contact-item i {
    color: var(--primary); font-size: 0.88rem; width: 16px;
    text-align: center; margin-top: 1px; flex-shrink: 0;
}
.footer-contact-item a { color: inherit; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--primary); }

/* Divider */
.footer-divider {
    border: none; border-top: 1px solid rgba(245,240,232,0.1);
    margin-bottom: 28px; position: relative; z-index: 3;
}

/* Bottom bar */
.footer-bottom {
    display: flex; align-items: center;
    justify-content: center;
    padding-bottom: 32px;
    flex-wrap: wrap; gap: 16px;
    position: relative; z-index: 3;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; align-items: center; } }

.footer-copy {
    font-size: 0.74rem; color: rgba(245,240,232,0.55); font-weight: 300;
}

.footer-socials { display: flex; gap: 10px; }

.footer-social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(245,240,232,0.15);
    color: rgba(245,240,232,0.65);
    font-size: 0.9rem;
    transition: all 0.22s;
}
.footer-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #F5F0E8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212,119,58,0.35);
}

/* Horario badge */
.footer-horario-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212,119,58,0.15);
    border: 1px solid rgba(212,119,58,0.35);
    padding: 6px 14px; border-radius: 99px;
    font-size: 0.73rem; color: var(--primary); font-weight: 600;
    margin-bottom: 16px; letter-spacing: 0.04em;
}
.footer-horario-badge .pulsedot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary); animation: pulse 2s infinite;
}

/* ══════════════════════════════════════
   EVENTO DETAIL DRAWER — SHARED
   (Reused in both index and show pages)
══════════════════════════════════════ */

/* Overlay */
#plaza-app .evento-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 1001 !important;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

/* Drawer Container */
#plaza-app .evento-detail-drawer {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100%) !important;
    width: 90% !important;
    max-width: 600px !important;
    z-index: 1002 !important;
    background: linear-gradient(135deg, #161310 0%, #1D1914 100%) !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 80vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.4s cubic-bezier(0.22, 0.68, 0, 1.2) !important;
}

#plaza-app .evento-detail-drawer.active {
    transform: translateX(-50%) translateY(0) !important;
}

/* Headers */
#plaza-app .evento-detail-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 16px !important;
    border-bottom: 1px solid var(--border) !important;
    flex-shrink: 0 !important;
    background: transparent !important;
}

#plaza-app .evento-detail-header h2 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #F5F0E8 !important;
    margin: 0 !important;
    font-family: 'DM Sans', sans-serif !important;
}

#plaza-app .close-btn {
    background: rgba(212, 119, 58, 0.15) !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #D4773A !important;
    transition: all 0.2s !important;
    padding: 0 !important;
}

#plaza-app .close-btn:hover {
    background: #D4773A !important;
    color: #F5F0E8 !important;
}

/* Content */
#plaza-app .evento-detail-content {
    overflow-y: auto !important;
    flex: 1 !important;
    padding: 16px 14px !important;
}

#plaza-app .evento-detail-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Image */
#plaza-app .evento-detail-image {
    width: 100% !important;
    height: 220px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
    margin-bottom: 12px !important;
}

#plaza-app .evento-detail-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Info */
#plaza-app .evento-detail-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

#plaza-app .evento-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #F5F0E8 !important;
    margin: 0 !important;
    line-height: 1.2;
}

/* Meta Group */
#plaza-app .evento-meta-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

#plaza-app .evento-meta-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
    background: rgba(212, 119, 58, 0.08) !important;
    border-radius: 8px !important;
    border-left: 3px solid #D4773A !important;
}

#plaza-app .evento-meta-item i {
    color: #D4773A !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    margin-top: 2px;
}

#plaza-app .evento-meta-item span {
    font-size: 0.9rem !important;
    color: #F5F0E8 !important;
    line-height: 1.4;
}

#plaza-app .evento-meta-item strong {
    color: #D4773A !important;
    font-weight: 600 !important;
}

/* Description */
#plaza-app .evento-description {
    padding: 16px !important;
    background: rgba(212, 119, 58, 0.05) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(212, 119, 58, 0.15) !important;
}

#plaza-app .evento-description p {
    font-size: 0.95rem !important;
    color: #F5F0E8 !important;
    line-height: 1.6;
    margin: 0 !important;
    font-family: 'DM Sans', sans-serif !important;
}

/* Body State */
body.evento-detail-open {
    overflow: hidden !important;
}

/* Scrollbar Styling */
#plaza-app .evento-detail-content::-webkit-scrollbar {
    width: 6px;
}

#plaza-app .evento-detail-content::-webkit-scrollbar-track {
    background: transparent;
}

#plaza-app .evento-detail-content::-webkit-scrollbar-thumb {
    background: rgba(212, 119, 58, 0.3);
    border-radius: 3px;
}

#plaza-app .evento-detail-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 119, 58, 0.5);
}
