:root {
    /* =============================================
       COLORES PRINCIPALES
       ============================================= */
    --ati-primary-color: #4CAF50;
    --ati-secondary-color: #4a4a4a;
    --ati-primary-hover: #4CAF50;
    --ati-primary-light: #f8f9fa;    
    --ati-accent-color: #f59e0b;

    /* =============================================
       BACKGROUNDS GENERALES
       ============================================= */
    --ati-background-main: #ffffff;
    --ati-background-light: #ccc;
    --ati-background-strong: #333;
    --ati-background-overlay: rgba(255, 255, 255, 0.95);

    /* =============================================
       TEXTO GENERAL
       ============================================= */
    --ati-text-primary: #4CAF50;
    --ati-text-secondary: #666;
    --ati-text-strong: #333;
    --ati-text-inverse: #ffffff;

    /* =============================================
       HEADER (NAVEGACIÓN)
       ============================================= */
    --ati-header-bg: #111;
    --ati-header-text: #ffffff;
    --ati-header-text-muted: #cccccc;
    --ati-header-border: rgba(255,255,255,0.08);
    --ati-header-shadow: 0 10px 15px -3px rgba(0,0,0,0.6);

    /* =============================================
       HERO EDITORIAL
       ============================================= */
    --ati-hero-bg: #ffffff;
    --ati-hero-title-color: #111;
    --ati-hero-subtitle-color: #333;
    --ati-hero-microcopy-color: #666;

    --ati-hero-title-size: 2.2rem;
    --ati-hero-subtitle-size: 1.15rem;
    --ati-hero-microcopy-size: 0.95rem;

    --ati-hero-max-width: 1100px;
    --ati-hero-padding-y: 60px;
    --ati-hero-padding-x: 20px;

    /* =============================================
       NAVEGACIÓN SECUNDARIA (atm_botones_core)
       ============================================= */
    --ati-secondary-nav-opacity: 0.85;
    --ati-secondary-nav-font-size: 0.85rem;
    --ati-secondary-nav-letter-spacing: 0.04em;
    --ati-secondary-nav-spacing-y: 20px;

    /* =============================================
       BORDES Y SEPARADORES
       ============================================= */
    --ati-border-color: #ddd;
    --ati-border-light: #f3f4f6;
    --ati-border-dark: #d1d5db;

    /* =============================================
       SOMBRAS
       ============================================= */
    --ati-shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --ati-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --ati-shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --ati-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --ati-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);

    /* =============================================
       RADIOS
       ============================================= */
    --ati-radius-sm: 4px;
    --ati-radius-md: 6px;
    --ati-radius-lg: 8px;
    --ati-radius-xl: 16px;
    --ati-radius-full: 9999px;

    /* =============================================
       TRANSICIONES
       ============================================= */
    --ati-transition-fast: 0.2s ease;
    --ati-transition-normal: 0.3s ease;
    --ati-transition-slow: 0.5s ease-in-out;

    /* =============================================
       TIPOGRAFÍA
       ============================================= */
    --ati-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ati-font-size-xs: 0.75rem;
    --ati-font-size-sm: 0.875rem;
    --ati-font-size-base: 1rem;
    --ati-font-size-lg: 1.125rem;
    --ati-font-size-xl: 1.25rem;
    --ati-font-size-2xl: 1.5rem;

    /* =============================================
       ESPACIADOS
       ============================================= */
    --ati-spacing-xs: 0.25rem;
    --ati-spacing-sm: 0.5rem;
    --ati-spacing-md: 1rem;
    --ati-spacing-lg: 1.5rem;
    --ati-spacing-xl: 2rem;
    --ati-spacing-2xl: 3rem;
}

/* SIDEBAR GLOBAL */
.newsx-offcanvas-btn {
    background-color: var(--ati-background-strong);
    color: var(--ati-text-inverse);
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsx-offcanvas-btn:hover {
    background-color: var(--ati-secondary-color);
    transform: scale(1.05);
}

.newsx-offcanvas-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--ati-primary-color);
    color: var(--ati-text-inverse);
    width: 40px;
    height: 40px;
    border-radius: var(--ati-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsx-offcanvas-close-btn:hover {
    background-color: var(--ati-secondary-color);
    transform: scale(1.05);
}

/* SIDEBAR MENU */
.sidebar__line {
    width: 100%;
    height: 3px !important;
    background: linear-gradient(to right, #4CAF50, #000000);
}

.sidebar {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar a,
.sidebar label.has-sub {
    display: block !important;
    width: 100% !important;
    padding: 5px 0 0 20px !important;
    font-size: 15px !important;
    color: var(--ati-text-secondary);
    text-decoration: none !important;
}

.sidebar__int {
    padding: 0;
    margin: 0;
}

.sidebar a:hover,
.sidebar label.has-sub:hover {
    color: var(--ati-text-primary);
    font-weight: 700 !important;
    background: var(--ati-background-main);
    border-radius: 0 2px 2px 0 !important;
}

.has-sub,
.sidebar-cta {
    position: relative !important;
    cursor: pointer !important;
    margin-left: -24px;
}

.sidebar-cta,
.fa-envelope {
    margin-right: 9px;
}

.has-sub i.fa-chevron-down {
    float: left;
    margin-right: 9px;
    transition: transform .3s;
}

.submenu,
.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu {
    display: none;
    padding-left: 0px;
}

.submenu li {
    margin: 0;
    padding: 0;
}

.submenu li::marker {
    content: none;
}

.submenu li a {
    font-size: 14px;
    padding: 4px 0 4px 0;
}

.submenu li a i {
    margin-right: 6px;
    font-size: 15px;
    vertical-align: middle;
}

#toggle-tendencias:checked + label + .submenu {
    display: block;
}

#toggle-tendencias:checked + label.has-sub i.fa-chevron-down {
    transform: rotate(180deg);
}

/* BOLETÍN */
.atm-newsletter {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.atm-newsletter h1 {
  margin-bottom: 16px;
}

.atm-newsletter-desc {
  max-width: 720px;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* FORMULARIO */
.atm-newsletter-form {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.atm-newsletter-form input {
  flex: 1;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.atm-newsletter-form input:focus {
  outline: none;
  border-color: var(--ati-primary-color);
}

/* BOTÓN */
.atm-newsletter-form button {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 6px;
  background: var(--ati-primary-color);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
  line-height: 0%;
}

.atm-newsletter-form button:hover {
  background: #43a047; /* verde un poco más oscuro */
  transform: translateY(-1px);
}

/* MICROCOPY */
.atm-newsletter-microcopy {
  font-size: 13px;
  color: #777;
  margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .atm-newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .atm-newsletter-form button {
    width: 100%;
  }
}

/* MARCO DE INDICADORES CLAVE */
.ati-indicadores-clave {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 32px 0 48px;
}

/* TARJETA */
.ati-indicador-clave-card {
    background: var(--ati-background-main);
    border: 1px solid var(--ati-border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ati-indicador-clave-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* TÍTULO */
.ati-indicador-clave-title {
    margin: 0 0 14px;
}

.ati-indicador-clave-title a {
    display: block;
    background: var(--ati-background-light);
    color: var(--ati-text-strong);
    text-align: center;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

.ati-indicador-clave-title a:hover {
    background: var(--ati-background-light);
}

/* CUERPO */
.ati-indicador-clave-body {
    flex: 1;
}

.ati-indicador-clave-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ati-text-secondary);
    margin: 0 0 12px;
}

.ati-indicador-clave-list {
    margin: 0;
    padding-left: 18px;
}

.ati-indicador-clave-list li {
    font-size: 13px;
    line-height: 1.45;
    color: var(--ati-text-secondary);
    margin-bottom: 6px;
}

/* TABLET */
@media (max-width: 1199px) {
    .ati-indicadores-clave {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .ati-indicadores-clave {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ati-indicador-clave-card {
        padding: 18px;
    }

    .ati-indicador-clave-title a {
        font-size: 14px;
        padding: 9px 10px;
    }
}

/* HERO GLOBAL */
.atm-hero-editorial {
    background-color: var(--ati-hero-bg);
    padding: var(--ati-hero-padding-y) var(--ati-hero-padding-x);
}

.atm-hero-inner {
    max-width: var(--ati-hero-max-width);
    margin: 0 auto;
}

.atm-hero-title {
    font-size: var(--ati-hero-title-size);
    line-height: 1.25;
    font-weight: 700;
    color: var(--ati-hero-title-color);
    margin: 0 0 var(--ati-spacing-lg) 0;
}

.atm-hero-subtitle {
    font-size: var(--ati-hero-subtitle-size);
    font-weight: 400;
    line-height: 1.5;
    color: var(--ati-hero-subtitle-color);
    margin: 0 0 var(--ati-spacing-md) 0;
    max-width: 90%;
}

.atm-hero-microcopy {
    font-size: var(--ati-hero-microcopy-size);
    color: var(--ati-hero-microcopy-color);
    margin: 0;
    max-width: 80%;
}

/* BOTONES CORE */
.botones-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 40px 0;
    justify-content: center !important;
    align-items: center;
}

.boton-categoria {
    background-color: none;
    color: var(--ati-text-primary);
    border: 2px solid var(--ati-primary-color);
    padding: 7px 16px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    position: relative;
}

.boton-categoria:hover {
    background-color: var(--ati-primary-hover);
    border: 2px solid var(--ati-primary-hover);
    color: var(--ati-text-inverse);
}

/* Tooltip base */
.boton-categoria::after {
    content: attr(data-intencion);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

/* Flechita */
.boton-categoria::before {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #111;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Hover */
.boton-categoria:hover::after,
.boton-categoria:hover::before {
    opacity: 1;
}

/* NOTICIAS DEL DÍA */
.atm-las-ultimas {
    margin: 0;
}

.atm-section-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: -54px 0 20px 0;
}

/* LINK "VER TODAS" */
.atm-section-link {
    font-size: 14px;
    color: var(--ati-text-secondary);
    text-decoration: none !important;
    border-bottom: none !important;
    transition: opacity .2s ease;
}

.atm-section-link:hover {
    opacity: 0.85;
}

/* Item */
.atm-item-widget {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

/* Thumbnail */
.atm-thumb {
    display: block;
    line-height: 0;
}

.atm-thumb:hover {
    opacity: 0.85;
}

.atm-thumb img {
    width: 120px;
    height: 71px;
    object-fit: cover;
    border-radius: 4px;
}

/* Texto */
.atm-texto {
    flex: 1;
    min-width: 0;
}

/* BADGES */
.atm-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

/* Base badge (link-safe) */
.badge {
    display: inline-block;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    line-height: 1.2;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: opacity .2s ease;
}

/* País */
.badge-pais {
    background: var(--ati-background-strong);
    color: var(--ati-text-inverse);
}

/* Segmento */
.badge-segmento {
    background: var(--ati-background-strong);
    color: var(--ati-text-inverse);
}

/* TÍTULO */
.atm-titulo {
    display: block;
    font-size: var(--ati-font-size-sm);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ati-text-strong);
    text-decoration: none !important;
    border-bottom: none !important;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.atm-titulo:hover {
    color: var(--ati-text-primary);
}

/* MOBILE */
@media (max-width: 600px) {

    .atm-item-widget {
        gap: 10px;
    }

    .atm-thumb img {
        width: 80px;
        height: 54px;
    }

    .atm-badges {
        gap: 5px;
    }

    .badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* LO MÁS LEÍDO */
.atm-mas-leido {
    margin: -10px 0 0 0;
}

/* Item */
.atm-mas-leido .atm-item-widget {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

/* Thumbnail */
.atm-mas-leido .atm-thumb {
    display: block;
    line-height: 0;
}

.atm-mas-leido .atm-thumb img {
    width: 120px;
    height: 69.5px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity .2s ease;
}

.atm-mas-leido .atm-thumb:hover img {
    opacity: .85;
}

/* Texto */
.atm-mas-leido .atm-texto {
    flex: 1;
    min-width: 0;
}

/* BADGE (categoría) */
.atm-mas-leido .badge {
    display: inline-block;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    line-height: 1.2;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--ati-background-strong);
    color: var(--ati-text-inverse);
    margin-bottom: 4px;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* TÍTULO */
.atm-mas-leido .atm-titulo {
    display: block;
    font-size: var(--ati-font-size-sm);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ati-text-strong);
    text-decoration: none !important;
    border-bottom: none !important;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.atm-mas-leido .atm-titulo:hover,
.atm-mas-leido .badge:hover {
    color: var(--ati-text-primary);
}

/* MOBILE */
@media (max-width: 600px) {

    .atm-mas-leido .atm-item-widget {
        gap: 10px;
    }

    .atm-mas-leido .atm-thumb img {
        width: 80px;
        height: 54px;
    }

    .atm-mas-leido .badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ============  FOOTER ATM  ============ */
.atm-footer {
    background: #111;
    color: #ccc;
    padding: 20px;
    font-size: 14px;
}

.atm-footer h3 {
    font-size: 20px !important;
    color: var(--ati-text-primary);
    margin-bottom: 20px !important;
}

.atm-footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.atm-footer a:hover {
    color: var(--ati-text-primary);
}

/* ----------  GRID RESPONSIVE  ---------- */
.atm-footer-sections {
    display: grid !important;
    grid-template-columns: 1.4fr 1.2fr 1fr 2.2fr;   /* Desktop: 4 columnas (la última doble ancho) */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    padding: 0 15px;
}

/* Ubicación explícita para desktop */
.atm-footer__col.brand {
    grid-column: 1;
}

.atm-footer__col:nth-of-type(2) {
    grid-column: 2;
}

.atm-footer__col:nth-of-type(3) {
    grid-column: 3;
}

.atm-footer-negocios {
    grid-column: 4;
}

/* Logo */
.atm-footer__col.brand img {
    max-width: 150%;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
}

.atm-footer__col.brand .slogan {
    font-size: 17px;
    color: #ccc;
    margin: 8px 0 0;
    line-height: 1.45;
}

/* Enlaces y textos de las columnas */
.atm-footer__col {
    text-align: left;
    color: #fff;
    font-size: 15px;
    margin: 0 0 8px;
}

.atm-footer__col a,
.atm-footer__col p {
    display: block;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.atm-footer-copy {
    display: grid !important;
    grid-template-columns: 1fr;   /* Desktop: 4 columnas (la última doble ancho) */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    padding: 20px 0 0 0;
}

.atm-footer-social {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.atm-footer-social a {
    color: rgba(255,255,255,0.55);
    font-size: 18px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.atm-footer-social a:hover {
    color: #6cc24a; /* tu verde */
    transform: translateY(-1px);
}

/* ----------  RESPONSIVE TABLET (1024px y menos)  ---------- */
@media (max-width: 1024px) {
    .atm-footer-sections {
        grid-template-columns: 1fr 1fr;  /* 2 columnas en tablet */
        gap: 25px;
    }
    
    /* Reorganización para tablet */
    .atm-footer__col.brand {
        grid-column: 1;
        grid-row: 1;
    }
    
    .atm-footer__col:nth-of-type(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .atm-footer__col:nth-of-type(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .atm-footer-negocios {
        grid-column: 2;
        grid-row: 2;
    }
}

/* ----------  RESPONSIVE MÓVIL (768px y menos)  ---------- */
@media (max-width: 768px) {
    h3 {
        font-size: 16px !important;
        text-align: center !important;
    }

    .atm-footer {
        padding: 30px 15px;
    }
    
    .atm-footer-sections {
        grid-template-columns: 1fr;  /* 1 columna en móvil */
        gap: 20px;
        text-align: center;
    }
    
    /* Reseteo de grid para móvil - todas las columnas van una debajo de otra */
    .atm-footer__col.brand,
    .atm-footer__col:nth-of-type(2),
    .atm-footer__col:nth-of-type(3),
    .atm-footer-negocios {
        grid-column: 1;
        grid-row: auto;
    }
    
    .atm-footer__col {
        text-align: center;
    }
    
    /* Separadores entre secciones en móvil */
    .atm-footer__col:not(:last-child),
    .atm-footer-negocios:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,.15);
        padding-bottom: 20px;
        margin-bottom: 0;
    }
    
    .atm-footer__col.brand img {
        max-width: 100%;
    }
}

/* ----------  RESPONSIVE MÓVIL PEQUEÑO (480px y menos)  ---------- */
@media (max-width: 480px) {
    h3 {
        font-size: 16px !important;
        text-align: center !important;
    }

    .atm-footer {
        padding: 25px 10px;
    }
    
    .atm-footer-sections {
        gap: 15px;
        padding: 0 5px;
    }    
    
    .atm-footer__col {        
        margin-bottom: 12px !important;
    }
    
    .atm-footer__col a,
    .atm-footer__col p {
        font-size: 13px;
        margin: 6px 0;
    }
    
    .atm-footer__col.brand .slogan {
        font-size: 12px;
    }
}

/* === Estilo Negocios ================================= */
.atm-footer-negocios h3 {
    margin-bottom: 0 !important;
}

.atm-footer-negocios .negocio-item {
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 8px;
}

.atm-footer-negocios .negocio-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.neg-heading {
    display: block;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 6px;
    font-size: 15px;
}

.neg-heading__sub {
    font-weight: 300 !important;
    font-size: 13px;
}

.neg-mail {
    display: inline-block;
    font-size: 13px;
    background-color: var(--ati-background-strong);
    padding: 6px 12px;
    border-radius: 4px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.neg-mail:hover {
    color: var(--ati-text-primary);
    transform: translateY(-1px);
}

/* Responsive para elementos de negocio */
@media (max-width: 768px) {
    .neg-heading {
        font-size: 14px;
    }
    
    .neg-heading__sub {
        font-size: 12px;
    }
    
    .neg-mail {
        font-size: 12px;
        padding: 5px 10px;
    }
}