/* =========================================
   1. VARIABLES & RESET (ALL GUINDA & NEUTRAL)
========================================= */
:root {
    --primary-guinda: #AF272F;
    --primary-guinda-dark: #8B1E24;
    
    --bg-page: #FFFFFF; 
    --bg-subtle: #f4f4f5; /* Gris piedra neutro */
    --surface: #FFFFFF;
    
    --text-main: #18181b; /* Gris carbón neutro */
    --text-muted: #52525b; /* Gris medio neutro */
    
    --font-title: 'Montserrat', sans-serif;
    --font-text: 'Inter', sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    
    --shadow-soft: 0 20px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 30px 60px -15px rgba(175, 39, 47, 0.15);
}

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

body {
    font-family: var(--font-text);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: 0.3s ease; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0 120px; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; display: inline-block; }

/* =========================================
   2. BOTONES & ETIQUETAS
========================================= */
.btn-primary {
    background: var(--primary-guinda);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--primary-guinda-dark);
    box-shadow: 0 10px 20px rgba(175, 39, 47, 0.3);
    color: #fff;
}

.btn-primary.outline {
    background: transparent;
    border: 2px solid var(--primary-guinda);
    color: var(--primary-guinda);
}

.btn-primary.outline:hover {
    background: var(--primary-guinda);
    color: var(--surface);
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.tag-guinda {
    background: rgba(175, 39, 47, 0.1);
    color: var(--primary-guinda);
}

/* =========================================
   3. NAV GLASSMORPHISM
========================================= */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 999;
}

.nav-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 30px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.brand-logo img { height: 45px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary-guinda); }

.btn-nav {
    background: var(--primary-guinda);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
}
.btn-nav:hover { background: var(--primary-guinda-dark); transform: translateY(-2px); }

/* =========================================
   4. HERO ASIMÉTRICO
========================================= */
.hero-modern {
    padding: 180px 0 100px;
    background: var(--surface);
    overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 20px; }

.social-pill {
    display: flex;
    background: var(--bg-subtle);
    padding: 10px 20px;
    border-radius: 50px;
    gap: 15px;
}

.social-pill a { color: var(--text-main); font-size: 1.1rem; }
.social-pill a:hover { color: var(--primary-guinda); }

.hero-image-wrapper { position: relative; }
.shape-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-guinda), rgba(253, 185, 0, 0.2));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    top: -20px;
    right: -20px;
    opacity: 0.15;
}

.hero-img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* =========================================
   5. SOBRE MÍ / OVERLAP
========================================= */
.about-modern { padding: 120px 0; }
.overlap-grid { display: grid; grid-template-columns: 5fr 7fr; align-items: center; }
.overlap-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; height: 600px; object-fit: cover; }
.overlap-card {
    background: var(--surface);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-left: -100px; 
    position: relative;
    z-index: 2;
}

.overlap-card h2 { font-family: var(--font-title); font-size: 2.5rem; margin-bottom: 20px; }
.lead { font-size: 1.2rem; color: var(--primary-guinda); font-weight: 500; margin-bottom: 20px; }

.contact-strip { margin-top: 30px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: #25D366; }

/* =========================================
   6. NOTICIAS CARDS (HOME Y ARCHIVO)
========================================= */
.news-modern { padding: 100px 0; background: var(--surface); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-title); font-size: 2.5rem; }
.link-arrow { font-weight: 600; color: var(--primary-guinda); }

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

.modern-card {
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid transparent;
}

.modern-card:hover {
    transform: translateY(-10px);
    background: var(--surface);
    box-shadow: var(--shadow-hover);
    border-color: rgba(175, 39, 47, 0.1);
}

.card-img-wrap { position: relative; height: 240px; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-category {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--surface); color: var(--primary-guinda);
    padding: 5px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}

.card-body { padding: 30px; }
.card-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; display: block; }
.modern-card h3 { font-family: var(--font-title); font-size: 1.25rem; margin-bottom: 15px; line-height: 1.4; }
.read-more { display: inline-block; margin-top: 15px; font-weight: 600; color: var(--primary-guinda); }

/* Noticia Destacada */
.featured-card {
    grid-column: 1 / -1; 
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
}
.featured-card .card-img-wrap { height: 100%; min-height: 350px; }
.featured-card .card-body { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.featured-card h2 { font-family: var(--font-title); font-size: 2rem; line-height: 1.3; margin-bottom: 20px; color: var(--text-main); }
.featured-card .excerpt { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }

/* Filtros y Paginación */
.news-archive-section { padding: 80px 0 120px; background: var(--bg-page); }
.category-filters { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 60px; }
.filter-btn { padding: 10px 24px; border-radius: 50px; background: var(--bg-subtle); color: var(--text-muted); font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; }
.filter-btn:hover { background: var(--surface); color: var(--primary-guinda); border-color: rgba(175, 39, 47, 0.2); }
.filter-btn.active { background: var(--primary-guinda); color: var(--surface); box-shadow: 0 4px 15px rgba(175, 39, 47, 0.3); }

.modern-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 80px; padding-top: 40px; border-top: 1px solid #E2E8F0; }
.page-link { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-main); padding: 10px 20px; border-radius: 30px; background: var(--bg-subtle); }
.page-link:hover:not(.disabled) { background: var(--primary-guinda); color: var(--surface); }
.page-link.disabled { opacity: 0.5; cursor: not-allowed; background: transparent; }
.page-numbers { display: flex; gap: 10px; align-items: center; }
.page-num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 600; color: var(--text-muted); }
.page-num:hover { background: rgba(175, 39, 47, 0.1); color: var(--primary-guinda); }
.page-num.active { background: var(--primary-guinda); color: var(--surface); box-shadow: 0 4px 10px rgba(175, 39, 47, 0.3); }

/* =========================================
   7. WIDGET INSTAGRAM
========================================= */
.instagram-section { padding: 80px 0 100px; background: var(--bg-page); }
.instagram-section h2 { font-family: var(--font-title); font-size: 2.5rem; margin-bottom: 10px; color: var(--text-main); }
.ig-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 50px; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ig-post { position: relative; border-radius: var(--radius-md); overflow: hidden; display: block; aspect-ratio: 1 / 1; box-shadow: var(--shadow-soft); }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ig-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(175, 39, 47, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.ig-overlay i { color: var(--surface); font-size: 3rem; transform: scale(0.5); transition: transform 0.3s ease; }
.ig-post:hover img { transform: scale(1.1); }
.ig-post:hover .ig-overlay { opacity: 1; }
.ig-post:hover .ig-overlay i { transform: scale(1); }

/* =========================================
   8. FORMULARIO CONTACTO
========================================= */
.contact-modern { padding: 100px 0; background: var(--bg-subtle); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; background: var(--surface); padding: 60px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.contact-info h2 { font-family: var(--font-title); font-size: 2.5rem; margin-bottom: 20px; color: var(--text-main); }
.contact-info p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.detail-item { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; color: var(--text-main); font-weight: 500; }
.detail-item i { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(175, 39, 47, 0.1); color: var(--primary-guinda); border-radius: 50%; font-size: 1.2rem; }

.modern-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #E2E8F0; border-radius: var(--radius-md); font-family: var(--font-text); font-size: 1rem; color: var(--text-main); background: var(--surface); transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-guinda); box-shadow: 0 0 0 3px rgba(175, 39, 47, 0.15); }
.form-group textarea { resize: vertical; min-height: 120px; }
.w-100 { width: 100%; justify-content: center; }

/* =========================================
   9. FOOTER
========================================= */
.modern-footer { padding: 80px 0 40px; background: #171717; color: #fff; }
.modern-footer h2 { font-family: var(--font-title); font-size: 2rem; margin-bottom: 30px; }
.social-huge { margin-bottom: 40px; }
.social-huge a { display: inline-block; margin: 0 10px; font-size: 2rem; color: rgba(255,255,255,0.5); }
.social-huge a:hover { color: var(--primary-guinda); transform: scale(1.1); }
.modern-footer p { color: rgba(255,255,255,0.3); font-size: 0.9rem; }

/* =========================================
   10. PÁGINAS INTERNAS (Header y Detalle)
========================================= */
.page-header {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    color: var(--surface);
    position: relative;
    overflow: hidden;
}
.page-header h1 { font-family: var(--font-title); font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; }
.breadcrumb { font-size: 1rem; color: rgba(255, 255, 255, 0.7); }
.breadcrumb a { color: var(--surface); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary-guinda); }
.page-header .tag-guinda { background: rgba(175, 39, 47, 0.8); color: var(--surface); }

/* VISTA INDIVIDUAL (nota-detalle.php) */
.single-post-body { background-color: var(--bg-page); }
.single-article-container { padding: 150px 0 100px; max-width: 800px; margin: 0 auto; width: 90%; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-muted); margin-bottom: 30px; font-size: 0.95rem; }
.back-link:hover { color: var(--primary-guinda); transform: translateX(-5px); }
.article-header { margin-bottom: 40px; text-align: center; }
.article-header .tag { margin-bottom: 20px; }
.article-header h1 { font-family: var(--font-title); font-size: 3rem; font-weight: 800; line-height: 1.2; color: var(--text-main); margin-bottom: 20px; }
.article-meta { display: flex; justify-content: center; gap: 20px; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.article-meta i { color: var(--primary-guinda); }
.article-hero-image { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 50px; box-shadow: var(--shadow-soft); }
.article-hero-image img { width: 100%; max-height: 500px; object-fit: cover; }
.article-body { font-family: var(--font-text); color: var(--text-main); }
.lead-paragraph { font-size: 1.25rem; font-weight: 500; line-height: 1.8; color: var(--primary-guinda); margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #E2E8F0; }
.main-text { font-size: 1.1rem; line-height: 1.9; color: #3f3f46; }
.main-text br { display: block; margin-bottom: 15px; content: ""; }

.article-share { margin-top: 60px; padding-top: 40px; border-top: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: space-between; }
.article-share span { font-weight: 600; font-size: 1.1rem; }
.share-buttons { display: flex; gap: 15px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--surface); transition: 0.3s ease; }
/* Botones de compartir sin azules vivos */
.share-btn.facebook { background: #18181b; } 
.share-btn.twitter { background: #000000; }
.share-btn.whatsapp { background: #25D366; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* =========================================
   11. TRAYECTORIA (MILESTONES & GALLERY)
========================================= */
.trajectory-content { padding: 100px 0; background: var(--bg-page); }
.trajectory-intro { max-width: 800px; margin: 0 auto 80px; }
.trajectory-intro h2 { font-family: var(--font-title); font-size: 2.5rem; color: var(--text-main); margin-bottom: 20px; }
.lead-text { font-size: 1.25rem; color: var(--primary-guinda); font-weight: 500; line-height: 1.8; }
.trajectory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.trajectory-details { display: flex; flex-direction: column; gap: 40px; }
.milestone { display: flex; gap: 25px; align-items: flex-start; }
.milestone-icon { flex-shrink: 0; width: 60px; height: 60px; background: var(--bg-subtle); color: var(--primary-guinda); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: 0.3s ease; }
.milestone:hover .milestone-icon { background: var(--primary-guinda); color: var(--surface); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.milestone-content h3 { font-family: var(--font-title); font-size: 1.3rem; color: var(--text-main); margin-bottom: 10px; }
.milestone-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.action-box { margin-top: 20px; padding-top: 40px; border-top: 1px solid #E2E8F0; }

.trajectory-gallery { position: relative; height: 600px; }
.gallery-blob { position: absolute; width: 350px; height: 350px; background: linear-gradient(135deg, rgba(175, 39, 47, 0.1), rgba(253, 185, 0, 0.1)); border-radius: 50%; top: 10%; left: 10%; z-index: 0; }
.img-wrapper { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); z-index: 1; transition: 0.5s ease; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.img-1 { width: 60%; height: 450px; top: 0; left: 0; }
.img-2 { width: 55%; height: 400px; bottom: 0; right: 0; z-index: 2; border: 10px solid var(--bg-page); }
.img-wrapper:hover { transform: scale(1.02); z-index: 3; }

/* =========================================
   12. MEDIA QUERIES GLOBALES (Responsive)
========================================= */
@media (max-width: 992px) {
    .overlap-grid { grid-template-columns: 1fr; }
    .overlap-card { margin-left: 0; margin-top: -50px; padding: 40px; }
    .contact-grid { grid-template-columns: 1fr; padding: 40px 20px; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .ig-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card .card-img-wrap { height: 300px; }
    .featured-card .card-body { padding: 30px; }
    .trajectory-grid { grid-template-columns: 1fr; gap: 60px; }
    .trajectory-gallery { height: 500px; order: -1; }
    .img-1 { width: 65%; height: 350px; }
    .img-2 { width: 60%; height: 300px; }
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .hero-content h1 { font-size: 3rem; }
    .desktop-nav { display: none; }
    .page-header { padding: 140px 0 60px; }
    .page-header h1 { font-size: 2.5rem; }
    .modern-pagination { flex-direction: column; gap: 20px; }
    .article-header h1 { font-size: 2.2rem; }
    .article-share { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 576px) {
    .ig-grid { grid-template-columns: 1fr; gap: 15px; }
}