/*
Theme Name: C4 Astra Child
Theme URI: https://www.grupoc4.co
Description: Child theme para Grupo C4 - Control de Contaminación. Diseño premium con Elementor Pro.
Author: Grupo C4
Author URI: https://www.grupoc4.co
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: c4-child
*/

/* ═══════════════════════════════════════════════════
   C4 DESIGN SYSTEM — CSS TOKENS
   ═══════════════════════════════════════════════════ */

:root {
    /* Brand Colors */
    --c4-navy:    #003D6D;
    --c4-blue:    #006699;
    --c4-cyan:    #0086C0;
    --c4-mint:    #00D4A1;
    --c4-dark:    #0C1E2D;
    --c4-ice:     #F4F7FA;

    /* Text Colors */
    --c4-tx-head: #0F172A;
    --c4-tx-body: #334155;
    --c4-tx-muted:#64748B;

    /* Borders */
    --c4-bdr:     #E2E8F0;
    --c4-bdr-f:   #F1F5F9;

    /* Typography */
    --c4-fn-d:    'Sora', sans-serif;
    --c4-fn-b:    'Instrument Sans', sans-serif;

    /* Radius */
    --c4-r-sm:    6px;
    --c4-r-md:    10px;
    --c4-r-lg:    14px;
    --c4-r-xl:    20px;

    /* Transitions */
    --c4-ease:    cubic-bezier(.4, 0, .2, 1);
}

/* ═══ GLOBAL TYPOGRAPHY ═══ */
body {
    font-family: var(--c4-fn-b);
    color: var(--c4-tx-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--c4-fn-d);
    color: var(--c4-tx-head);
    letter-spacing: -0.02em;
}

/* ═══ BUTTONS ═══ */
.c4-btn {
    font-family: var(--c4-fn-d);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 60px;
    transition: all 0.4s var(--c4-ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.c4-btn-glow {
    background: linear-gradient(135deg, var(--c4-cyan), var(--c4-blue));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 134, 192, 0.3);
}

.c4-btn-glow:hover {
    box-shadow: 0 6px 30px rgba(0, 134, 192, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.c4-btn-outline {
    border: 1.5px solid var(--c4-bdr);
    color: var(--c4-tx-body);
    background: transparent;
}

.c4-btn-outline:hover {
    border-color: var(--c4-cyan);
    color: var(--c4-cyan);
}

/* ═══ SECTION PATTERNS ═══ */
.c4-section {
    padding: 80px 0;
}

.c4-section-alt {
    padding: 80px 0;
    background: var(--c4-ice);
}

.c4-section-dark {
    padding: 60px 0;
    background: var(--c4-dark);
    color: rgba(255, 255, 255, 0.65);
}

.c4-hero {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--c4-ice) 0%, #fff 100%);
}

.c4-cta-band {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--c4-navy), var(--c4-dark));
    text-align: center;
}

/* ═══ LABELS & TAGS ═══ */
.c4-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.c4-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c4-cyan);
}

.c4-label-text {
    font-family: var(--c4-fn-d);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c4-cyan);
}

.c4-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 60px;
    font-family: var(--c4-fn-d);
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(0, 134, 192, 0.08);
    color: var(--c4-cyan);
}

/* ═══ CARDS ═══ */
.c4-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--c4-bdr-f);
    border-radius: var(--c4-r-lg);
    transition: all 0.4s var(--c4-ease);
}

.c4-card:hover {
    border-color: var(--c4-cyan);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 61, 109, 0.08);
}

.c4-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--c4-navy);
    margin-bottom: 6px;
}

.c4-card p {
    font-size: 0.82rem;
    color: var(--c4-tx-muted);
    line-height: 1.6;
}

.c4-card-link {
    font-family: var(--c4-fn-d);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c4-cyan);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ═══ SCROLL REVEAL ═══ */
.c4-rv {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--c4-ease);
}

.c4-rv.vis {
    opacity: 1;
    transform: none;
}

/* Delays */
.c4-rv-d1 { transition-delay: 0.1s; }
.c4-rv-d2 { transition-delay: 0.2s; }
.c4-rv-d3 { transition-delay: 0.3s; }
.c4-rv-d4 { transition-delay: 0.4s; }
.c4-rv-d5 { transition-delay: 0.5s; }
.c4-rv-d6 { transition-delay: 0.6s; }

/* ═══ GRADIENT TEXT ═══ */
.c4-gradient-text {
    background: linear-gradient(135deg, var(--c4-cyan), var(--c4-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .c4-hero { padding: 60px 0 40px; }
    .c4-section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .c4-hero { padding: 40px 0 30px; }
    .c4-section { padding: 40px 0; }
}

/* ========================================
   GOOGLE FONTS IMPORT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* ========================================
   ASTRA OVERRIDES FOR ELEMENTOR
   ======================================== */
.elementor-page .site-content {
  padding: 0 !important;
}
.elementor-page .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}
.elementor-widget-html {
  margin-bottom: 0 !important;
}

/* ========================================
   BLOG CARD STYLES
   ======================================== */
.ast-separate-container .ast-article-post {
  border-radius: 22px;
  border: 1px solid #EDF2F7;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.ast-separate-container .ast-article-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,61,109,0.08);
}
.ast-separate-container .ast-article-post .entry-title a {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #003D6D;
}
.ast-separate-container .ast-article-post .entry-title a:hover {
  color: #0086C0;
}
.ast-separate-container .ast-article-post .entry-content p,
.ast-separate-container .ast-article-post .entry-summary p {
  font-family: 'Instrument Sans', sans-serif;
  color: #3A4D63;
  font-size: 0.88rem;
  line-height: 1.6;
}
.ast-separate-container .ast-article-post .cat-links a {
  font-family: 'Sora', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 60px;
  background: rgba(0,134,192,0.08);
  color: #0086C0;
  text-decoration: none;
}
.ast-separate-container .ast-article-post .read-more a {
  font-family: 'Sora', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0086C0;
}
/* ========================================
   MOBILE FIXES
   ======================================== */
@media (max-width: 768px) {
  .hero-stats {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .hero-stat {
    flex: 1 1 45% !important;
  }
}
@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-stat {
    flex: 1 1 100% !important;
  }
}