/* ================================================
PÁGINA DE PROYECTOS — AVANTGARDE
Pegar en: Apariencia > Personalizar > CSS adicional
================================================ */

/* --- Variables --- */
.ag-proy { --or: #E8621A; --dk: #111111; --mu: #777777; --bd: #e5e5e5; --bg: #f8f8f8; }

/* --- HERO --- */
.ag-hero {
padding: 90px 20px 72px;
background: linear-gradient(180deg, rgba(232,98,26,.10) 0%, rgba(255,255,255,0) 60%);
border-bottom: 1px solid #e5e5e5;
text-align: center;
}
.ag-hero-badge {
display: inline-block;
background: rgba(232,98,26,.08);
border: 1px solid rgba(232,98,26,.22);
border-radius: 100px;
padding: 6px 20px;
font-size: 11px;
font-weight: 600;
letter-spacing: 2px;
text-transform: uppercase;
color: #E8621A;
margin-bottom: 22px;
}
.ag-hero h1 {
font-family: 'Inter', sans-serif;
font-size: clamp(34px, 6vw, 66px);
font-weight: 800;
line-height: 1.0;
letter-spacing: -1.5px;
color: #111111;
text-transform: uppercase;
margin: 0 auto 20px;
max-width: 820px;
}
.ag-hero h1 span { color: #E8621A; }
.ag-hero p {
font-size: 17px;
color: #777777;
line-height: 1.75;
max-width: 560px;
margin: 0 auto 32px;
}
.ag-btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ag-btn {
display: inline-flex;
align-items: center;
gap: 8px;
font-family: 'Inter', sans-serif;
font-weight: 700;
font-size: 14px;
letter-spacing: .04em;
text-transform: uppercase;
padding: 14px 30px;
border-radius: 100px;
border: 2px solid transparent;
text-decoration: none !important;
transition: all .2s ease;
cursor: pointer;
}
.ag-btn-primary { background: #E8621A; color: #fff !important; border-color: #E8621A; }
.ag-btn-primary:hover { background: #cf5516; transform: translateY(-2px); }
.ag-btn-outline { background: transparent; color: #111 !important; border-color: #ddd; }
.ag-btn-outline:hover { border-color: #111; }

/* --- STATS STRIP --- */
.ag-stats {
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
}
.ag-stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
max-width: 1160px;
margin: 0 auto;
}
@media (max-width: 600px) { .ag-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.ag-stat {
padding: 28px 16px;
text-align: center;
border-right: 1px solid #e5e5e5;
}
.ag-stat:last-child { border-right: none; }
.ag-stat-num {
font-family: 'Inter', sans-serif;
font-size: 40px;
font-weight: 800;
color: #E8621A;
line-height: 1;
}
.ag-stat-lbl {
font-size: 12px;
color: #999;
margin-top: 5px;
letter-spacing: .05em;
text-transform: uppercase;
}

/* --- SECCIÓN GALERÍA TÍTULO --- */
.ag-sec-wrap {
width: min(1160px, 92%);
margin: 0 auto;
}
.ag-sec-label {
font-family: 'Inter', sans-serif;
font-size: 11px;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
color: #E8621A;
margin-bottom: 10px;
}
.ag-sec-title {
font-family: 'Inter', sans-serif;
font-size: clamp(26px, 4vw, 44px);
font-weight: 800;
letter-spacing: -.5px;
color: #111;
line-height: 1.1;
margin-bottom: 10px;
}
.ag-sec-title span { color: #E8621A; }
.ag-sec-sub {
font-size: 16px;
color: #777;
line-height: 1.7;
max-width: 480px;
}

/* --- GALERÍA GRID --- */
.ag-gallery { padding: 56px 0 72px; }
.ag-gallery-wrap { width: min(1160px, 92%); margin: 0 auto; }
.ag-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
@media (max-width: 900px) { .ag-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .ag-grid { grid-template-columns: 1fr; } }
.ag-card {
border-radius: 12px;
overflow: hidden;
background: #f5f5f5;
}
.ag-card-wide { grid-column: span 2; }
@media (max-width: 900px) { .ag-card-wide { grid-column: span 1; } }
.ag-card-img { overflow: hidden; aspect-ratio: 4/3; }
.ag-card-wide .ag-card-img { aspect-ratio: 16/9; }
.ag-card-img img {
width: 100%; height: 100%;
object-fit: cover;
display: block;
transition: transform .4s ease;
}
.ag-card:hover .ag-card-img img { transform: scale(1.04); }
.ag-card-body { padding: 14px 16px 16px; }
.ag-card-cat {
font-size: 11px; font-weight: 600;
letter-spacing: .1em; text-transform: uppercase;
color: #aaa; margin-bottom: 4px;
}
.ag-card-name {
font-family: 'Inter', sans-serif;
font-size: 15px; font-weight: 700;
text-transform: uppercase; color: #111;
margin-bottom: 2px;
}
.ag-card-loc { font-size: 13px; color: #888; }

/* CTA dentro de galería */
.ag-gallery-cta { text-align: center; margin-top: 44px; padding: 0 16px; }
.ag-gallery-cta p { font-size: 14px; color: #888; margin-bottom: 16px; }

/* --- CASO DESTACADO --- */
.ag-highlight {
background: #f8f8f8;
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
padding: 80px 20px;
}
.ag-highlight-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 64px;
align-items: center;
max-width: 1160px;
margin: 0 auto;
}
@media (max-width: 768px) { .ag-highlight-grid { grid-template-columns: 1fr; gap: 36px; } }
.ag-highlight-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.ag-highlight-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-highlight-text h2 {
font-family: 'Inter', sans-serif;
font-size: clamp(22px, 3.5vw, 36px);
font-weight: 800;
text-transform: uppercase;
letter-spacing: -.5px;
color: #111;
margin: 10px 0 16px;
line-height: 1.1;
}
.ag-highlight-text p {
font-size: 15px; color: #666;
line-height: 1.8; margin-bottom: 12px;
}
.ag-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.ag-tag {
padding: 5px 14px;
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 100px;
font-size: 12px; font-weight: 600;
text-transform: uppercase; letter-spacing: .06em;
color: #888;
}

/* --- ANTES Y DESPUÉS --- */
.ag-ba { padding: 80px 20px; }
.ag-ba-header { text-align: center; margin-bottom: 48px; }
.ag-ba-header h2 {
font-family: 'Inter', sans-serif;
font-size: clamp(26px, 4vw, 42px);
font-weight: 800;
text-transform: uppercase;
color: #111;
margin: 10px 0 12px;
}
.ag-ba-header p { font-size: 15px; color: #777; max-width: 420px; margin: 0 auto; }
.ag-ba-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
max-width: 1000px;
margin: 0 auto;
}
@media (max-width: 640px) { .ag-ba-grid { grid-template-columns: 1fr; } }
.ag-ba-card { border-radius: 12px; overflow: hidden; position: relative; }
.ag-ba-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ag-ba-lbl {
position: absolute; bottom: 12px; left: 12px;
background: rgba(0,0,0,.65); color: #fff;
font-family: 'Inter', sans-serif;
font-size: 11px; font-weight: 700;
letter-spacing: .1em; text-transform: uppercase;
padding: 5px 14px; border-radius: 100px;
}
.ag-ba-after .ag-ba-lbl { background: #E8621A; }

/* --- CTA FINAL --- */
.ag-cta {
background: #111111;
padding: 100px 20px;
text-align: center;
}
.ag-cta .ag-sec-label { color: rgba(255,255,255,.35); }
.ag-cta h2 {
font-family: 'Inter', sans-serif;
font-size: clamp(28px, 5vw, 52px);
font-weight: 800;
text-transform: uppercase;
color: #fff;
margin: 14px 0 18px;
line-height: 1.05;
}
.ag-cta h2 span { color: #E8621A; }
.ag-cta p { font-size: 16px; color: rgba(255,255,255,.45); max-width: 420px; margin: 0 auto 36px; line-height: 1.7; }
.ag-cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.ag-btn-wa { background: #25D366; color: #fff !important; border-color: #25D366; border-radius: 100px; }
.ag-btn-wa:hover { background: #1db954; transform: translateY(-2px); }
.ag-btn-ghost {
background: transparent;
color: rgba(255,255,255,.55) !important;
border: 2px solid rgba(255,255,255,.2);
border-radius: 100px;
}
.ag-btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff !important; }

/* --- WhatsApp flotante --- */
.ag-wa-float {
position: fixed; bottom: 24px; right: 24px; z-index: 9999;
width: 56px; height: 56px; border-radius: 50%;
background: #25D366; color: #fff !important;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 4px 20px rgba(37,211,102,.4);
text-decoration: none !important;
transition: transform .2s ease;
}
.ag-wa-float:hover { transform: scale(1.08); }