/* Eventos Venustiano Carranza - Main CSS
   Paleta institucional: magenta #D9048E, cyan #049DD9, navy #253259 */

:root {
    --color-primary: #D9048E;
    --color-primary-dark: #B00376;
    --color-primary-light: #F06CB8;
    --color-secondary: #049DD9;
    --color-dark: #1a1f3c;
    --color-dark-alt: #253259;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1);
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--color-gray-800); background: var(--color-gray-50); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--color-gray-900); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.accent { color: var(--color-primary); }

/*========================================
  HEADER
========================================*/
.header { position: sticky; top: 0; z-index: 200; background: linear-gradient(135deg, #253259, #1a2744); box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: box-shadow var(--transition-base); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo img { height: 50px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: #fff; }
.logo-text span { color: var(--color-primary); }
.nav-desktop { display: none; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-link { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; font-weight: 500; color: rgba(255,255,255,.8); border-radius: var(--radius-lg); transition: all var(--transition-fast); font-size: .9rem; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-link.active { color: #fff; background: var(--color-primary); }
.nav-link i { font-size: 1.125rem; }
.btn-menu { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.5rem; color: #fff; border-radius: .5rem; }
.btn-menu:hover { background: rgba(255,255,255,.1); }
@media(min-width:768px) { .nav-desktop{display:block;} .btn-menu{display:none;} }
@media(max-width:767px) { .header-inner{height:60px;} .logo img{height:40px;} .logo-text{font-size:1rem;} }
@media(max-width:480px) { .logo-text{display:none;} }

/*========================================
  MOBILE MENU
========================================*/
.nav-mobile { position: fixed; top: 0; right: 0; width: 80%; max-width: 320px; height: 100dvh; background: #fff; z-index: 400; box-shadow: var(--shadow-xl); padding: 1.5rem; transform: translateX(100%); transition: transform var(--transition-base); overflow-y: auto; }
.nav-mobile.active { transform: translateX(0); }
.nav-mobile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-gray-200); }
.nav-mobile .nav-list { flex-direction: column; align-items: stretch; }
.nav-mobile .nav-link { padding: 1rem; color: var(--color-gray-700) !important; background: transparent !important; font-size: 1rem; border-radius: var(--radius-lg); }
.nav-mobile .nav-link:hover { background: var(--color-gray-100) !important; color: var(--color-primary) !important; }
.nav-mobile .nav-link.active { background: rgba(217,4,142,.1) !important; color: var(--color-primary) !important; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 399; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.overlay.active { opacity: 1; visibility: visible; }

/*========================================
  HERO (shared)
========================================*/
.hero { position: relative; padding: 4rem 0 3rem; background: linear-gradient(135deg, #1a1f3c 0%, #253259 50%, #1a1f3c 100%); overflow: hidden; text-align: center; }
.hero::before { content:''; position:absolute; top:-60%; right:-20%; width:60%; height:250%; background:rgba(217,4,142,.08); transform:rotate(15deg); border-radius:40% 0 0 40%; }
.hero::after { content:''; position:absolute; bottom:-60%; left:-15%; width:45%; height:200%; background:rgba(4,157,217,.06); transform:rotate(-10deg); }
.hero-particles { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.p { position:absolute; border-radius:50%; animation:floatp linear infinite; opacity:0; }
.p:nth-child(1){width:6px;height:6px;background:var(--color-primary);top:20%;left:10%;animation-duration:8s;}
.p:nth-child(2){width:4px;height:4px;background:var(--color-secondary);top:60%;left:80%;animation-duration:10s;animation-delay:1s;}
.p:nth-child(3){width:8px;height:8px;background:var(--color-primary-light);top:40%;left:50%;animation-duration:12s;animation-delay:2s;}
.p:nth-child(4){width:5px;height:5px;background:var(--color-secondary);top:80%;left:25%;animation-duration:9s;animation-delay:.5s;}
.p:nth-child(5){width:3px;height:3px;background:#ffc107;top:30%;left:70%;animation-duration:11s;animation-delay:3s;}
.p:nth-child(6){width:7px;height:7px;background:var(--color-primary);top:70%;left:40%;animation-duration:7s;animation-delay:1.5s;}
@keyframes floatp { 0%{transform:translateY(0) scale(0);opacity:0} 10%{opacity:.6;transform:scale(1)} 90%{opacity:.6} 100%{transform:translateY(-120px) scale(0);opacity:0} }

.hero-content { position: relative; z-index: 1; color: #fff; animation: fadeInUp .8s ease; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(217,4,142,.2); backdrop-filter: blur(10px); padding: .5rem 1.25rem; border-radius: var(--radius-full); font-size: .875rem; font-weight: 500; margin-bottom: 1.5rem; border: 1px solid rgba(217,4,142,.3); }
.hero-badge i { color: var(--color-primary-light); }
.hero-title { font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; color: #fff; margin-bottom: .5rem; text-shadow: 0 4px 12px rgba(0,0,0,.3); }
.hero-subtitle { font-size: 1.125rem; opacity: .9; max-width: 550px; margin: 0 auto; }

/*========================================
  SECTION HEADERS
========================================*/
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 1.875rem; margin-bottom: .5rem; }
.section-header p { color: var(--color-gray-500); }

/*========================================
  HOME - EVENTOS LISTING
========================================*/
.eventos-listing { padding: 3rem 0; }
.eventos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }

.evento-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--color-gray-200); box-shadow: var(--shadow-sm); transition: all var(--transition-base); animation: fadeInUp .6s ease both; text-decoration: none; color: inherit; }
.evento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--color-primary); }
.evento-card.featured { border: 2px solid var(--color-primary); }
.evento-card.featured:hover { box-shadow: 0 20px 40px rgba(217,4,142,.15); }

.evento-card-image { position: relative; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--color-dark), var(--color-dark-alt)); }
.evento-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.evento-card:hover .evento-card-image img { transform: scale(1.05); }
.evento-date-badge { position: absolute; bottom: .75rem; left: .75rem; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); color: #fff; padding: .35rem .75rem; border-radius: var(--radius-full); font-size: .75rem; font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.evento-featured-tag { position: absolute; top: .75rem; right: .75rem; background: linear-gradient(135deg, var(--color-primary), #a00366); color: #fff; padding: .3rem .75rem; border-radius: var(--radius-full); font-size: .7rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; text-transform: uppercase; letter-spacing: .5px; }

.evento-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.evento-category { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: var(--radius-full); font-size: .7rem; font-weight: 600; width: fit-content; margin-bottom: .75rem; }
.cat-cultural { background: rgba(139,92,246,.15); color: #7c3aed; }
.cat-deportivo { background: rgba(16,185,129,.15); color: #059669; }
.cat-musica { background: rgba(217,4,142,.15); color: var(--color-primary); }
.cat-general { background: rgba(107,114,128,.15); color: var(--color-gray-600); }
.evento-card-body h3 { font-size: 1.125rem; margin-bottom: .5rem; transition: color var(--transition-fast); }
.evento-card:hover .evento-card-body h3 { color: var(--color-primary); }
.evento-card-body > p { font-size: .875rem; color: var(--color-gray-500); flex: 1; line-height: 1.5; }
.evento-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--color-gray-100); }
.evento-location { font-size: .8rem; color: var(--color-gray-400); display: flex; align-items: center; gap: .3rem; }
.evento-cta { font-size: .8rem; color: var(--color-primary); font-weight: 600; display: flex; align-items: center; gap: .3rem; transition: gap var(--transition-fast); }
.evento-card:hover .evento-cta { gap: .5rem; }

/* Placeholder cards */
.placeholder-card { opacity: .7; border-style: dashed; cursor: default; }
.placeholder-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--color-gray-200); }
.placeholder-img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: rgba(255,255,255,.5); font-size: .875rem; aspect-ratio: 16/10; }
.placeholder-img i { font-size: 2.5rem; }

/*========================================
  FOOTER
========================================*/
.footer { background: linear-gradient(135deg, #1a1f3c, #253259); color: #fff; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer p { opacity: .8; font-size: .875rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .875rem; opacity: .7; transition: all var(--transition-fast); }
.footer-links a:hover { opacity: 1; color: var(--color-primary-light); padding-left: 4px; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: rgba(255,255,255,.1); font-size: 1.125rem; transition: all var(--transition-fast); }
.footer-social a:hover { background: var(--color-primary); transform: translateY(-3px); }
.footer-social a.social-fb:hover { background: #1877F2; }
.footer-social a.social-ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border: none; }
.footer-social a.social-tk:hover { background: #000000; color: #fff; }
.footer-social a.social-tw:hover { background: #000000; color: #fff; }
.footer-social a.social-web:hover { background: var(--color-secondary); color: #fff; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .875rem; opacity: .7; }

/*========================================
  ANIMATIONS
========================================*/
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/*========================================
  RESPONSIVE
========================================*/
@media(max-width:767px) {
    .hero{padding:2.5rem 0 2rem;}
    .eventos-grid{grid-template-columns:1fr;}
    .footer-bottom{justify-content:center;text-align:center;}
}
