@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --marwen-orange: #f47920;
    --marwen-purple: #a174ac;
    --marwen-green: #14a085;
    --marwen-yellow: #ffb81c;
    --marwen-dark: #1a1e23;
    --bg-light: #ffffff;
    --transition-pro: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-pro: 40px;
}

/* --- Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--marwen-dark);
    line-height: 1.1;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Navegación --- */
.nav-marwen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-pro);
    background: transparent;
}

.nav-marwen.scrolled {
    background: rgba(26, 30, 35, 0.98);
    padding: 12px 5%;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}

.btn-login { color: white !important; text-decoration: none !important; font-weight: 700; font-size: 0.85rem; }
.btn-primary { background: var(--marwen-yellow); color: var(--marwen-dark); text-decoration: none; font-weight: 900; padding: 10px 20px; border-radius: 4px; text-transform: uppercase; font-size: 0.75rem; }

/* --- Hero --- */
.hero { position: relative; height: 100vh; display: flex; align-items: center; padding: 0 5%; color: white; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3)), url('../img/img01.jpg'); }
.hero h1 { font-size: clamp(2.8rem, 11vw, 6.5rem); font-weight: 900; line-height: 0.85; text-transform: uppercase; letter-spacing: -3px; position: relative; z-index: 2; }
.hero h1 .serif { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; display: inline-block; border-bottom: 3px solid var(--marwen-yellow); padding-bottom: 5px; }

/* --- Grid de Flyers --- */
.content-section { padding: 60px 2%; width: 100%; margin: 0 auto; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.5rem); margin: 0 0 40px 3%; letter-spacing: -1.5px; }
.flyers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }

.flyer-card {
    border-radius: var(--radius-pro);
    height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    color: white;
    transition: var(--transition-pro);
    cursor: pointer;
}

/* RECUPERACIÓN DE ANIMACIÓN: Zoom suave */
.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.flyer-card:hover .card-bg {
    transform: scale(1.1); /* Efecto de agrandamiento restaurado */
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
}

.flyer-card h2 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -5px;
    line-height: 0.8;
}

/* RECUPERACIÓN DE TEXTO PEQUEÑO: Descripción */
.flyer-card p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 15px;
    line-height: 1.3;
    opacity: 0.9;
    max-width: 90%;
}

/* --- PUBLICACIONES DINÁMICAS --- */
.flyers-grid article:nth-child(n+4) {
    grid-column: 1 / -1;
    height: 420px;
}

.flyers-grid article:nth-child(n+4) h2 {
    font-size: clamp(2.5rem, 7vw, 5rem);
}

/* --- Responsivo --- */
@media (max-width: 1024px) {
    .flyers-grid { grid-template-columns: 1fr; }
    .flyer-card { height: 400px; padding: 25px; }
    .nav-marwen { padding: 20px 5%; }
}

.hero-btns { margin-top: 40px; position: relative; z-index: 2;}
.btn-large { padding: 15px 35px !important; font-size: 1rem !important; font-weight: 900; text-transform: uppercase; background: var(--marwen-yellow); border-radius: 4px; text-decoration: none; color: var(--marwen-dark); display: inline-block; transition: var(--transition-pro); }
.btn-large:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition-pro); }
.reveal.active { opacity: 1; transform: translateY(0); }