@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@400;500;700&display=swap');

:root {
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #2D3748;
    --text-light: #4A5568;
    --accent-red: #E53E3E; 
    --accent-red-dark: #C53030;
    --accent-gold: #D69E2E;
    --accent-gold-light: #F6E05E;
    --accent-blue: #3182CE;
    --border-color: #E2E8F0;
    
    /* Rainbow colors from Clown */
    --clown-red: #E70012;
    --clown-orange: #F39200;
    --clown-yellow: #FFF100;
    --clown-green: #00A651;
    --clown-blue: #0054A6;
    --clown-purple: #662483;

    --font-heading: 'Poppins', sans-serif;
    --font-main: 'Nunito', sans-serif;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 5px solid transparent; /* default */
}

/* Section Specific Headers */
.header-clown {
    border-top: 5px solid var(--clown-red);
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,240,240,0.95));
}
.header-creser {
    border-top: 5px solid var(--accent-blue);
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(240,248,255,0.95));
}
.header-show {
    border-top: 5px solid #a200ff;
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(245,235,255,0.95));
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo img {
    height: 70px;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05) rotate(-5deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.2s;
    display: inline-block;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--clown-red);
    border-bottom: 3px solid var(--clown-red);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn-red {
    background-color: var(--clown-red);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 0, 18, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.btn-red:hover {
    background-color: #c00010;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 0, 18, 0.4);
}

.btn-yellow {
    background-color: var(--clown-yellow);
    color: var(--text-dark) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 241, 0, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.btn-yellow:hover {
    background-color: #e6d900;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 241, 0, 0.5);
}

.btn-blue {
    background-color: var(--clown-blue);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 84, 166, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.btn-blue:hover {
    background-color: #004285;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 84, 166, 0.4);
}

.btn-cta {
    background-color: var(--accent-red);
    color: var(--bg-white) !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: var(--accent-red-dark);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-red) !important;
    border: 2px solid var(--accent-red);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--accent-red);
    color: var(--bg-white) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,245,245,0.9) 100%), url('../img/Hero_Bg.jpg') center/cover;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    transform: skewY(-2deg);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.hero h1 span {
    color: var(--clown-red);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

/* Cards (Resumen Ejes) */
.section-wrapper {
    padding: 100px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-size: 2.8rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--clown-red), var(--clown-yellow), var(--clown-blue));
    margin: 15px auto 0;
    border-radius: 3px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card-eje {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.card-eje::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--clown-red), var(--clown-yellow), var(--clown-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.card-eje:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-eje:hover::before {
    transform: scaleX(1);
}

.card-eje img {
    height: 100px;
    margin-bottom: 25px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-eje h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-eje p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 5px solid var(--bg-white);
}

.team-member h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.team-member span {
    color: var(--clown-blue);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 15px;
}

/* Cartelera */
.evento-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.evento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.evento-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.evento-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.evento-info h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge.creser { background-color: #EBF8FF; color: #2B6CB0; }
.badge.clown { background-color: #FFF5F5; color: #C53030; }
.badge.show { background-color: #FAF5FF; color: #805AD5; }

/* Contacto & Formularios */
.contact-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--clown-blue);
    background-color: var(--bg-white);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 20px 30px;
    margin-top: 80px;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--clown-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-buttons { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 80px 20px; }
    .section-title { font-size: 2.2rem; }
}

/* Admin Styles (Mantener compatibilidad) */
.admin-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.admin-table th {
    background-color: var(--bg-light);
    font-weight: 700;
}

.btn-admin {
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    display: inline-block;
    transition: opacity 0.3s;
}
.btn-admin:hover { opacity: 0.8; }
.btn-edit { background-color: var(--clown-orange); }
.btn-delete { background-color: var(--clown-red); }
.btn-new { background-color: var(--clown-green); color: white; padding: 10px 20px; text-decoration: none; border-radius: var(--border-radius-sm); font-weight: bold; }
