/* ═══════════════════════════════════════════════════════════════
   MOHAMMED BOUTHIRI — REMAKE 2025
   Paleta: Negro profundo + Rojo justicia + Marfil + Dorado
   Tipografía: Playfair Display (titulares) + Source Sans 3 (cuerpo)
═══════════════════════════════════════════════════════════════ */

:root {
    --red:        #c0392b;
    --red-dark:   #96281b;
    --red-light:  #e74c3c;
    --black:      #0d0d0d;
    --dark:       #1a1a1a;
    --dark-2:     #242424;
    --grey:       #888;
    --light:      #f5f2ed;
    --white:      #ffffff;
    --gold:       #c9a84c;
    --gold-light: #e8d5a3;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;

    --radius: 6px;
    --shadow: 0 4px 30px rgba(0,0,0,0.12);
    --shadow-dark: 0 8px 40px rgba(0,0,0,0.4);

    --container: 1200px;
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  7rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-block;
    padding: 0.8em 2em;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn--primary {
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}
.btn--primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192,57,43,0.4);
}
.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}
.btn--red {
    background: transparent;
    color: var(--red-light);
    border: 1.5px solid var(--red-light);
    padding: 0.6em 1.5em;
    font-size: 0.85rem;
}
.btn--red:hover {
    background: var(--red-light);
    color: var(--white);
}

/* ─── SECTION TITLES ─── */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 1.5rem;
}
.section-title--light { color: var(--white); }
.section-title em {
    font-style: italic;
    color: var(--red);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}
.section-header--left { display: block; }
.section-header__line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.2);
}
.section-header .section-title { margin-bottom: 0; white-space: nowrap; }

.section-intro {
    color: var(--grey);
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
    margin-top: -0.5rem;
}
.section-intro--light { color: rgba(255,255,255,0.6); }

/* ─── NAV ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav--scrolled {
    background: rgba(13,13,13,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 68px;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav__brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}
.nav__links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}
.nav__links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.25s, opacity 0.25s;
}
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
    display: none;
    flex-direction: column;
    list-style: none;
    background: rgba(13,13,13,0.98);
    padding: 1rem var(--space-md) 1.5rem;
}
.nav__mobile--open { display: flex; }
.nav__mobile a {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero:hover .hero__bg { transform: scale(1.0); }
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(13,13,13,0.88) 0%,
        rgba(13,13,13,0.75) 50%,
        rgba(192,57,43,0.3) 100%
    );
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    max-width: 900px;
    animation: heroIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35em 1.2em;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero__title em {
    font-style: italic;
    color: var(--gold-light);
}
.hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 1.4rem;
    animation: bounce 2s infinite;
    z-index: 2;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── SUMMARY ─── */
.summary {
    padding: var(--space-xl) 0;
    background: var(--light);
}
.summary__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}
.summary__text p {
    color: #444;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}
.summary__text strong { color: var(--dark); }
.summary__photo {
    position: relative;
}
.summary__photo img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    max-height: 520px;
    box-shadow: var(--shadow-dark);
}
.summary__photo-caption {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
}
.quote-mark {
    font-size: 1.6rem;
    line-height: 0;
    vertical-align: -0.4em;
    opacity: 0.5;
    margin: 0 0.3em;
}

/* ─── SECTION COLORS ─── */
.section-dark {
    background: var(--dark);
    padding: var(--space-xl) 0;
}
.section-light {
    background: var(--white);
    padding: var(--space-xl) 0;
}
.section-petition {
    background: var(--light);
    padding: var(--space-xl) 0;
}

/* ─── ACTUALIDAD ─── */
.featured-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    background: var(--dark-2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255,255,255,0.06);
}
.featured-news__video {
    background: #000;
}
.featured-news__body {
    padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-md);
}
.featured-news__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--white);
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}
.featured-news__body p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
}

.news-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.2em 0.8em;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.news-card {
    background: var(--dark-2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-dark);
}
.news-card__img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-card__body {
    padding: 1.5rem;
}
.news-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--white);
    margin: 0.5rem 0 0.75rem;
}
.news-card__body p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

/* ─── VIMEO ─── */
.vimeo-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #000;
}
.vimeo-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.vimeo-wrap--vertical {
    padding-bottom: 177.78%; /* 9:16 */
}

/* ─── WHY CARDS ─── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.why-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--red);
    padding: var(--space-md);
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.why-card__icon {
    color: var(--red);
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
}
.why-card__num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--light);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    pointer-events: none;
}
.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.why-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}
.why-card__photo img {
    border-radius: var(--radius);
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ─── DOCS ─── */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.doc-card {
    background: var(--dark-2);
    border-radius: var(--radius);
    padding: var(--space-md);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--red);
    position: relative;
    transition: transform 0.25s;
}
.doc-card:hover { transform: translateY(-4px); }
.doc-card__num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.06);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    line-height: 1;
}
.doc-card__icon {
    color: var(--gold);
    width: 32px;
    margin-bottom: 1rem;
}
.doc-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}
.doc-card strong { color: var(--white); }
.doc-btn {
    display: inline-block;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: color 0.2s;
    margin-right: 0.75rem;
}
.doc-btn:hover { color: var(--gold-light); }
.doc-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ─── PETITION ─── */
.petition-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-lg);
    align-items: center;
}
.petition-photo img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    max-height: 500px;
    box-shadow: var(--shadow-dark);
}
.petition-body .section-title { color: var(--dark); }
.petition-list {
    list-style: none;
    counter-reset: petition;
    margin-top: 1.5rem;
}
.petition-list li {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1rem;
    color: #444;
    align-items: flex-start;
}
.petition-list li:last-child { border-bottom: none; }
.petition-list__num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    min-width: 2rem;
    margin-top: 0.1rem;
}
.petition-list strong { color: var(--dark); }

/* ─── VIDEOS GRID ─── */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
}
.video-item {}
.video-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--black);
    padding: var(--space-lg) 0 var(--space-md);
    border-top: 3px solid var(--red);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}
.footer__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}
.footer__tagline {
    color: var(--grey);
    font-size: 0.9rem;
}
.footer__contact p {
    color: var(--grey);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.footer__email {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.footer__email:hover { color: var(--gold); }
.footer__fb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer__fb:hover { color: var(--white); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

/* ─── PHOTOS GRID ─── */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}
.photo-item {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    background: var(--light);
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.photo-item:hover img {
    transform: scale(1.05);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .videos-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-news { grid-template-columns: 1fr; }
    .featured-news__body { padding: var(--space-md); }
}

@media (max-width: 768px) {
    :root { --space-xl: 4rem; --space-lg: 2.5rem; }

    .nav__links { display: none; }
    .nav__burger { display: flex; }

    .photos-grid { grid-template-columns: repeat(2, 1fr); }

    .hero__title { font-size: 2.2rem; }

    .summary__grid { grid-template-columns: 1fr; }
    .summary__photo { order: -1; }

    .why-grid { grid-template-columns: 1fr; }
    .docs-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .petition-inner { grid-template-columns: 1fr; }
    .petition-photo { display: none; }

    .videos-grid { grid-template-columns: repeat(2, 1fr); }

    .footer__inner { flex-direction: column; }
    .footer__bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .videos-grid { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; align-items: center; }
}
