@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700;800&family=Caveat:wght@500;600;700&display=swap');

/*
Theme Name: Cerca de la Gente
Theme URI: https://cerca-de-la-gente.example
Author: Derlis Acuña
Author URI: https://derlisacuna.example
Description: Tema de campaña política para WordPress. Incluye secciones de hero, historia, propuestas (custom post type), galería de acción (custom post type), banner de cierre y datos de contacto editables desde el Personalizador. Responsive y listo para producción.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cerca-de-la-gente
Tags: campaign, political, onepage, custom-colors, custom-logo, featured-images, translation-ready, block-styles, wide-blocks, elementor
*/

:root { font-family: 'Barlow', Arial, sans-serif; color: #182129; background: #fff; font-synthesis: none; text-rendering: optimizeLegibility; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, a { font: inherit; }
button { cursor: pointer; }
.site-shell { overflow: hidden; background: #fff; }

/* ===== HEADER ===== */
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 5.5vw; background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 3px 16px #1b22290d; }
.brand { color: #da1022; display: flex; align-items: center; gap: 7px; text-decoration: none; position: relative; padding-left: 18px; min-width: 188px; }
.brand-star { position: absolute; left: 0; top: -1px; color: #da1022; font-size: 15px; }
.brand-name { font-family: 'Barlow Condensed'; font-size: 21px; line-height: .82; font-weight: 900; letter-spacing: -.4px; }
.brand-sub { position: absolute; left: 20px; bottom: -13px; font-size: 8px; letter-spacing: 3px; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: flex-end; }
.main-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-link, .main-nav a { border: 0; background: none; color: #222b31; font-size: 14px; font-weight: 600; padding: 31px 0 27px; position: relative; text-decoration: none; display: inline-block; }
.nav-link:hover, .nav-link.active, .main-nav a:hover, .main-nav .current-menu-item > a { color: #d7192a; }
.nav-link.active::after, .main-nav .current-menu-item > a::after { content: ''; position: absolute; bottom: 20px; left: 0; width: 100%; height: 3px; border-radius: 3px; background: #df1e30; }
.social-cta { color: #fff; border: 0; border-radius: 22px; padding: 11px 18px; background: #e2172b; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; transition: transform .2s, background .2s; text-decoration: none; }
.social-cta:hover { transform: translateY(-2px); background: #ba1022; }
.header-socials { display: flex; align-items: center; gap: 16px; color: #11191f; }
.header-socials a { color: #11191f; text-decoration: none; }
.header-socials span { font-weight: 900; font-size: 20px; }
.header-socials svg { width: 18px; height: 18px; }
.tiktok { font-family: Arial; font-size: 24px !important; }
.mobile-menu { display: none; border: 0; background: transparent; color: #1c252b; }
.mobile-menu svg { width: 24px; height: 24px; }

/* ===== HERO ===== */
.hero { min-height: 590px; background-position: center; background-size: cover; display: flex; align-items: center; position: relative; color: #fff; }
.hero-copy { max-width: 620px; margin-left: 9vw; padding: 64px 0 70px; }
.eyebrow, .section-label { color: #df1a2c; font-family: 'Barlow Condensed'; font-size: 14px; font-weight: 800; letter-spacing: 3px; margin: 0 0 13px; }
.eyebrow.light { color: #fff; }
.hero h1 { font-family: 'Barlow Condensed'; font-size: clamp(64px, 7vw, 108px); line-height: .8; letter-spacing: -2px; margin: 0; font-weight: 900; }
.hero h1 span { font-size: .68em; letter-spacing: -1px; }
.script-line { font-family: Caveat, cursive; color: #fff; font-size: 34px; line-height: .92; transform: rotate(-3deg); margin: 29px 0 24px 5px; }
.hero-description { max-width: 470px; line-height: 1.36; font-size: 17px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { border: 1px solid transparent; border-radius: 25px; padding: 13px 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; transition: all .2s; text-decoration: none; }
.button-red { background: #df1b2e; color: white; }
.button-red:hover { background: #b60f20; transform: translateY(-2px); }
.button-outline { background: transparent; border-color: #fff; color: #fff; }
.button-outline:hover { background: #fff; color: #c41327; }
.play-icon { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.vote-badge { background: #fff; color: #1c252c; position: absolute; right: 6vw; top: 0; width: 110px; height: 142px; text-align: center; padding: 13px 0; clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%); box-shadow: 0 5px 15px #1113; }
.vote-badge small, .vote-badge strong, .vote-badge b { display: block; }
.vote-badge small { font-size: 13px; font-weight: 800; }
.vote-badge strong { color: #df162b; font-size: 21px; line-height: 1; }
.vote-badge b { font-size: 70px; font-family: 'Barlow Condensed'; line-height: .9; color: #df162b; }
.quote-mark { position: absolute; right: 11%; bottom: 60px; color: white; font-family: Caveat; font-size: 29px; line-height: .9; transform: rotate(-7deg); }

/* ===== PILLARS ===== */
.pillars { background: #1a242b; min-height: 112px; color: #fff; display: flex; padding: 17px 6vw; align-items: center; gap: 0; }
.pillar { display: flex; align-items: center; gap: 13px; padding: 5px 38px; border-right: 1px solid #ffffff55; flex: 1; min-height: 58px; }
.pillar:first-child { padding-left: 0; }
.pillar span { color: #fff; display: flex; align-items: center; }
.pillar svg { width: 30px; height: 30px; }
.pillar p { font-size: 15px; line-height: 1.05; margin: 0; font-weight: 600; }
.pillars-slogan { font-family: Caveat; font-size: 26px; line-height: .82; color: white; transform: rotate(-5deg); padding-left: 36px; min-width: 200px; }
.pillars-slogan span { color: #e11c30; }

/* ===== SECTIONS ===== */
.section-wrap { max-width: 1210px; margin: auto; padding: 80px 35px; }
.story { padding-bottom: 65px; }
.story-grid { display: grid; grid-template-columns: 1.05fr 1.25fr .8fr; gap: 35px; align-items: center; }
.story h2, .section-heading-row h2 { font-family: 'Barlow Condensed'; font-size: 46px; line-height: .9; margin: 0 0 18px; font-weight: 800; letter-spacing: -.7px; }
.story h2 em, .section-heading-row h2 em { color: #d8182b; font-style: normal; }
.story-copy > p { color: #4d5960; font-size: 15px; line-height: 1.45; max-width: 360px; }
.text-button, .small-link { color: #d8172a; border: 0; background: none; display: inline-flex; gap: 8px; align-items: center; padding: 12px 0; font-weight: 700; font-size: 14px; text-decoration: none; }
.text-button:hover, .small-link:hover { gap: 12px; }
.story-image-wrap { height: 290px; border-radius: 2px; overflow: hidden; position: relative; }
.story-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.8); }
.story-image-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff0, #1111); }
.story-image-wrap .story-quote { position: absolute; right: 18px; bottom: 45px; z-index: 2; color: #182129; font-family: Caveat; font-size: 25px; line-height: .9; transform: rotate(-6deg); text-align: center; }
.story-image-wrap .story-quote::after { content: ''; display: block; width: 90px; height: 4px; background: #dc172a; transform: rotate(-5deg); margin: 11px auto 0; border-radius: 50%; }
.credentials { padding: 24px 20px; background: #f6f7f7; border-radius: 3px; display: flex; flex-direction: column; gap: 25px; }
.credential { display: flex; gap: 15px; align-items: center; }
.credential .cred-icon { color: #e01b2c; min-width: 28px; display: grid; place-items: center; }
.credential svg { width: 26px; }
.credential p { margin: 0; font-size: 15px; line-height: 1.05; font-weight: 600; }

/* ===== PROPOSALS ===== */
.proposals { border-top: 1px solid #e4e6e7; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 34px; }
.section-heading-row h2 { margin: 0; }
.outline-button { color: #d8172a; border: 1px solid #d8172a; background: #fff; border-radius: 22px; padding: 10px 18px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; transition: all .2s; text-decoration: none; }
.outline-button:hover { background: #d8172a; color: white; }
.proposal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.proposal-card { display: grid; grid-template-columns: 54px 1fr; min-height: 232px; border: 1px solid #e5e7e8; position: relative; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.proposal-card:hover { transform: translateY(-5px); box-shadow: 0 13px 28px #1821291b; }
.proposal-number { background: #e11b2e; color: white; font-family: 'Barlow Condensed'; font-size: 24px; font-weight: 800; display: flex; justify-content: center; padding-top: 15px; }
.proposal-info { padding: 19px 15px 15px 15px; }
.proposal-info .prop-icon { color: #df192c; margin-bottom: 12px; display: inline-block; }
.proposal-info .prop-icon svg { width: 28px; height: 28px; }
.proposal-info h3 { font-family: 'Barlow Condensed'; text-transform: uppercase; line-height: .95; font-size: 22px; margin: 0 0 10px; }
.proposal-info p { font-size: 13px; line-height: 1.25; color: #566168; margin: 0; }
.proposal-info .small-link { padding: 14px 0 0; }
.proposal-card img { width: 100%; height: 100%; min-height: 232px; object-fit: cover; grid-column: 2; opacity: .88; order: 3; }

/* ===== GALLERY ===== */
.action { border-top: 1px solid #e4e6e7; padding-top: 70px; padding-bottom: 70px; }
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-image { border: 0; background: none; padding: 0; height: 200px; overflow: hidden; opacity: .75; transition: opacity .2s, transform .2s; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-image:hover, .gallery-image.selected { opacity: 1; transform: translateY(-3px); }
.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.gallery-controls button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d8172a; color: #d8172a; background: #fff; display: grid; place-items: center; }
.gallery-controls button:hover { background: #d8172a; color: #fff; }

/* ===== CLOSING BANNER ===== */
.closing-banner { min-height: 230px; display: flex; align-items: center; position: relative; overflow: hidden; padding: 30px 8%; color: #fff; background: linear-gradient(90deg, #970817, #d21328 55%, #a20c1c); }
.closing-person { width: 155px; height: 200px; align-self: end; margin-top: 20px; background-size: cover; background-position: center; filter: grayscale(.1); clip-path: polygon(12% 0, 83% 0, 100% 100%, 0 100%); }
.raised-hand { position: absolute; top: 13px; left: 7%; font-size: 32px; }
.closing-copy { margin-left: 70px; font-family: Caveat; font-size: 43px; line-height: .78; transform: rotate(-3deg); }
.closing-copy p { margin: 0; }
.closing-copy strong { font-weight: 600; }
.closing-social { margin-left: auto; border-left: 1px solid #ffffff66; border-right: 1px solid #ffffff66; padding: 19px 55px; text-align: center; }
.closing-social span { font-size: 14px; font-weight: 600; }
.closing-social div { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 15px; }
.closing-social svg { width: 24px; }
.closing-social a { color: #fff; }
.closing-social b { width: 25px; height: 25px; border-radius: 50%; background: white; color: #d31428; display: grid; place-items: center; font-size: 19px; }
.closing-ideas { font-family: Caveat; font-size: 25px; line-height: .78; margin-left: auto; transform: rotate(-5deg); }
.closing-ideas span { color: #fff; }

/* ===== FOOTER ===== */
.footer { background: #18232a; color: #fff; min-height: 170px; padding: 30px 6vw 14px; display: grid; grid-template-columns: 1.1fr 1fr 1.5fr; gap: 20px; position: relative; }
.footer-brand { display: flex; align-items: flex-start; gap: 5px; position: relative; color: #e31a2e; padding-left: 17px; }
.footer-brand .brand-sub { left: 18px; bottom: -10px; }
.footer-brand .brand-star { left: 0; }
.footer-list { border-left: 1px solid #ffffff50; padding-left: 18px; margin-left: 14px; color: #fff; font-size: 12px; line-height: 1.05; }
.footer-list b { color: #e31a2e; font-size: 25px; }
.footer-links { display: flex; gap: 20px; align-items: start; justify-content: center; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links button { border: 0; background: none; color: #fff; font-size: 13px; padding: 0; text-decoration: none; }
.footer-links a:hover { color: #ed2235; }
.footer-address { color: #e7eaeb; font-size: 12px; line-height: 1.4; display: grid; grid-template-columns: 20px 1fr; }
.footer-address svg { width: 18px; height: 18px; }
.copyright { grid-column: 1 / 3; color: #b1b9bd; font-size: 10px; border-top: 1px solid #ffffff2b; padding-top: 12px; }
.footer-mark { color: #e11b2e; font-weight: 800; font-size: 12px; display: flex; align-items: center; gap: 5px; justify-self: end; align-self: end; }
.footer-mark svg { width: 14px; height: 14px; }

/* ===== MODAL ===== */
.modal-backdrop { position: fixed; z-index: 50; inset: 0; background: #071015d9; display: grid; place-items: center; padding: 25px; }
.video-modal { width: min(700px, 100%); background: #fff; padding: 10px; position: relative; }
.modal-close { position: absolute; right: 12px; top: 12px; z-index: 2; border: 0; background: #fff; color: #182129; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
.video-placeholder { height: 380px; display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; background: linear-gradient(135deg, #18242b, #b50e20); }
.video-placeholder p { font-weight: 700; margin: 0; }
.video-embed { height: 380px; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== WP CORE ===== */
.wp-caption, .gallery-caption, .sticky, .bypostauthor, .screen-reader-text { }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption img[class*="wp-image-"] { display: block; margin: 0 auto; }
.wp-caption-text { text-align: center; font-size: 13px; color: #666; margin-top: 5px; }
img { max-width: 100%; height: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) { .site-header { padding: 0 4vw; } .main-nav, .main-nav ul { gap: 17px; } .nav-link, .main-nav a { font-size: 13px; } .social-cta { padding: 10px 13px; } .hero-copy { margin-left: 7vw; } .pillars { padding: 17px 3vw; } .pillar { padding: 5px 18px; } .pillar p { font-size: 13px; } .pillars-slogan { padding-left: 18px; min-width: 150px; } .story-grid { grid-template-columns: 1fr 1.25fr; } .credentials { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; } .credential { max-width: 180px; } .closing-social { padding: 19px 25px; } }
@media (max-width: 760px) { .site-header { height: 72px; } .brand { min-width: auto; } .mobile-menu { display: block; } .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 15px 25px 25px; background: #fff; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 12px 20px #1821291c; } .main-nav.open { display: flex; } .main-nav ul { flex-direction: column; gap: 0; } .nav-link, .main-nav a { text-align: left; padding: 14px 0; border-bottom: 1px solid #e9eaeb; } .nav-link.active::after, .main-nav .current-menu-item > a::after { bottom: 0; left: 0; width: 40px; } .social-cta { justify-content: center; margin-top: 15px; } .header-socials { justify-content: center; margin-top: 15px; } .hero { min-height: 650px; background-position: 64% center; align-items: end; } .hero-copy { margin-left: 7vw; padding-bottom: 52px; padding-right: 30px; } .hero h1 { font-size: 70px; } .script-line { font-size: 29px; } .hero-description { font-size: 15px; } .vote-badge { right: 5vw; width: 85px; height: 116px; } .vote-badge b { font-size: 54px; } .quote-mark { right: 9%; top: 86px; bottom: auto; font-size: 23px; } .pillars { display: grid; grid-template-columns: 1fr 1fr; padding: 15px 5vw; } .pillar { padding: 12px 8px; border-right: 0; border-bottom: 1px solid #ffffff33; } .pillar:nth-child(odd) { border-right: 1px solid #ffffff55; } .pillars-slogan { grid-column: 1 / -1; padding: 16px 0 4px; text-align: center; min-width: unset; } .section-wrap { padding: 58px 22px; } .story-grid { display: flex; flex-direction: column; align-items: stretch; gap: 25px; } .story-copy > p { max-width: none; } .story-image-wrap { height: 240px; } .credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px 15px; } .credential p { font-size: 13px; } .section-heading-row { align-items: flex-start; flex-direction: column; } .section-heading-row h2, .story h2 { font-size: 40px; } .proposal-grid { grid-template-columns: 1fr; } .proposal-card { grid-template-columns: 47px 1fr 120px; min-height: 190px; } .proposal-card img { grid-column: 3; min-height: 190px; } .proposal-info { padding: 15px 10px; } .proposal-info h3 { font-size: 19px; } .proposal-info p { font-size: 12px; } .gallery-row { grid-template-columns: repeat(2, 1fr); } .gallery-image { height: 140px; } .closing-banner { padding: 25px 5vw 15px; min-height: 230px; align-items: end; } .closing-person { width: 100px; height: 150px; } .closing-copy { margin-left: 18px; font-size: 29px; align-self: center; } .closing-social { position: absolute; top: 18px; right: 5vw; border: 0; padding: 0; } .closing-ideas { display: none; } .footer { display: flex; flex-wrap: wrap; padding: 28px 7vw 15px; } .footer-brand { flex: 1 0 100%; } .footer-links { order: 3; flex: 1 0 100%; justify-content: flex-start; flex-wrap: wrap; padding-top: 18px; } .footer-links ul { flex-direction: row; } .footer-address { margin-left: auto; } .copyright { flex: 1 0 100%; order: 4; } .footer-mark { order: 5; margin-left: auto; } }
@media (max-width: 420px) { .hero h1 { font-size: 58px; } .hero-copy { padding-right: 10px; } .hero-actions { flex-direction: column; align-items: flex-start; } .button { padding: 11px 16px; } .proposal-card { grid-template-columns: 38px 1fr 94px; } .proposal-number { font-size: 20px; } .proposal-info h3 { font-size: 17px; } .proposal-info p { font-size: 11px; } .footer-links ul { gap: 12px; } .footer-address { font-size: 11px; } }

/* ===== ELEMENTOR COMPAT ===== */
.cdlg-elementor-main { width: 100%; }
.cdlg-elementor-page .site-shell { overflow: visible; }
.cdlg-elementor-front .site-header { position: relative; }
.elementor-page .site-header { position: relative; }
.elementor-page .site-shell { overflow: visible; }
body.elementor-editor-active .site-header { position: relative !important; z-index: 1 !important; }
body.elementor-editor-active .site-shell { overflow: visible !important; }
.cdlg-elementor-main .elementor-section { width: 100%; }
.cdlg-elementor-main .elementor-section-boxed > .elementor-container { max-width: 1210px; }
.cdlg-elementor-main .elementor-section-full_width > .elementor-container { max-width: 100%; }
.main-nav-fallback { display: flex; gap: 30px; align-items: center; }
.main-nav-fallback a { color: #222b31; font-size: 14px; font-weight: 600; text-decoration: none; padding: 31px 0 27px; position: relative; }
.main-nav-fallback a:hover { color: #d7192a; }
.main-nav-ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav-ul li a { color: #222b31; font-size: 14px; font-weight: 600; text-decoration: none; padding: 31px 0 27px; position: relative; display: inline-block; }
.main-nav-ul li a:hover, .main-nav-ul .current-menu-item > a { color: #d7192a; }
.main-nav-ul .current-menu-item > a::after { content: ''; position: absolute; bottom: 20px; left: 0; width: 100%; height: 3px; border-radius: 3px; background: #df1e30; }
@media (max-width: 760px) { .main-nav-fallback { flex-direction: column; gap: 0; } .main-nav-fallback a { padding: 14px 0; border-bottom: 1px solid #e9eaeb; } .main-nav-ul { flex-direction: column; gap: 0; } .main-nav-ul li a { padding: 14px 0; border-bottom: 1px solid #e9eaeb; } }
