/* =========================================================
   Activa Auditores — Hoja de estilos principal
   ========================================================= */

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

:root {
    --naranja: #E8610A;
    --naranja-hover: #C9520A;
    --naranja-light: #FF8A3D;
    --negro: #0A0A0A;
    --gris-oscuro: #1A1A1A;
    --gris-medio: #2C2C2C;
    --gris-texto: #888;
    --blanco: #FFFFFF;
    --fondo-claro: #F5F5F7;
    --fondo-seccion: #FAFAFA;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: var(--negro);
    overflow-x: hidden;
}

/* =========================================================
   BARRA DE PROGRESO DE SCROLL
   ========================================================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--naranja);
    z-index: 1001;
    transition: width .1s linear;
}

/* =========================================================
   NAVEGACIÓN
   ========================================================= */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 52px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color .2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--naranja);
    transform: scaleX(0);
    transition: transform .2s;
}

.nav-links a:hover {
    color: var(--naranja);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--naranja);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--naranja-hover);
    transform: translateY(-1px);
}

.nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger {
    width: 22px;
    height: 2px;
    background: var(--negro);
    display: block;
    position: relative;
    transition: .3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--negro);
    position: absolute;
    left: 0;
    transition: .3s;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    padding: 32px 24px;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 22px;
    font-weight: 600;
    color: var(--negro);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.mobile-menu a:hover {
    color: var(--naranja);
}

/* =========================================================
   HERO CON SLIDE DE IMÁGENES
   ========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 120px 24px 60px;
}

/* SLIDE DE IMÁGENES */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* CONTENIDO DEL HERO */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* TEXTO DEL HERO */
.hero-text-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    padding: 0 20px;
}

.hero-text.active {
    opacity: 1;
}

.hero-text h2 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}

.hero-text p {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 300;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}

.hero-text .hero-text-author {
    font-size: clamp(14px, 1.5vw, 18px);
    margin-top: 12px;
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}

/* TRUST BAR */
.hero-content .trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

.hero-content .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
}

.hero-content .trust-icon {
    width: 32px;
    height: 32px;
    background: var(--naranja-hover);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--blanco);
}

.hero-content .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.hero-content .btn-primary {
    background: var(--naranja);
    color: #fff;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-content .btn-primary:hover {
    background: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(232, 97, 10, 0.4);
}

/* =========================================================
   SECCIONES BASE
   ========================================================= */

section {
    padding: 100px 24px;
}

.section-inner {
    max-width: 1500px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    color: var(--negro);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 16px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--naranja);
    margin-bottom: 16px;
}

.section-title span {
    color: var(--naranja);
}

.section-sub {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 580px;
    font-weight: 300;
}

/* =========================================================
   QUIENES SOMOS
   ========================================================= */

.quienes-texto-card {
    background: var(--fondo-claro);
    border-radius: 20px;
    padding: 40px 48px;
    border: 1px solid #e5e5e5;
    transition: all .3s ease;
    cursor: default;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quienes-texto-card:hover {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.quienes-texto-card .section-sub {
    max-width: 100%;
    margin-top: 0;
    color: var(--negro);
    font-size: 17px;
    line-height: 1.7;
}

.quienes-texto-card .section-sub + .section-sub {
    margin-top: 16px;
}

/* =========================================================
   MISIÓN Y VISIÓN
   ========================================================= */

.inst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.inst-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px;
    transition: all .3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.inst-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--naranja);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.inst-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 60px rgba(232, 97, 10, 0.1);
    transform: translateY(-4px);
}

.inst-card:hover::before {
    transform: scaleX(1);
}

.inst-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: #fff;
}

.inst-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
}

.inst-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.inst-card-header h3 {
    margin-bottom: 0;
}

/* =========================================================
   SERVICIOS
   ========================================================= */

.servicios-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.servicios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9); /* Blanco con 60% de opacidad */
    z-index: 1;
    pointer-events: none;
}

.servicios-slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.servicios-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.servicios-slide.active {
    opacity: 1;
}

/* =========================================================
   DIAGRAMA CIRCULAR DE SERVICIOS
   ========================================================= */

.servicios-diagram {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 700px;
    margin: 20px auto 0px;
}

/* Líneas de conexión */
.diagram-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.diagram-lines line {
    stroke: var(--naranja);
    stroke-width: 3;
}

/* Centro - Logo con 3 círculos concéntricos */
.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.center-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--naranja);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-ring-1 {
    width: 160px;
    height: 160px;
    animation: spinRing 8s linear infinite;
}

.center-ring-2 {
    width: 180px;
    height: 180px;
    border-color: var(--naranja);
    opacity: 0.5;
    animation: spinRing 12s linear infinite reverse;
}

.center-ring-3 {
    width: 200px;
    height: 200px;
    border-color: var(--naranja);
    opacity: 0.3;
    border-style: dashed;
    animation: spinRing 16s linear infinite;
}

@keyframes spinRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.diagram-logo-img {
    width: 130px;
    height: auto;
    filter: brightness(0);
    z-index: 2;
    position: relative;
}

/* Items del diagrama */
.diagram-item {
    position: relative;
    text-decoration: none;
    display: block;
    pointer-events: auto;
    z-index: 2;
}

.diagram-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    animation: floatCircle 3s ease-in-out infinite;
    animation-delay: calc(var(--angle) * 0.05s);
}

/* 2 círculos concéntricos para cada servicio - Color naranja */
.circle-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--naranja);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-ring-1 {
    width: 100px;
    height: 100px;
    border-color: var(--naranja);
    opacity: 0.7;
    animation: spinRing 6s linear infinite;
}

.circle-ring-2 {
    width: 120px;
    height: 120px;
    border-color: var(--naranja);
    opacity: 0.4;
    border-style: dashed;
    animation: spinRing 10s linear infinite reverse;
}

.diagram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 0px;
}

.diagram-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: brightness(0);
    transition: filter 0.3s ease;
}

/* Texto dentro del círculo (visible solo en móviles) */
.diagram-label-mobile {
    display: none;
}

/* Animación individual de cada círculo */
@keyframes floatCircle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* =========================================================
   ETIQUETAS DE SERVICIOS
   ========================================================= */

.servicio-group {
    position: absolute;
    pointer-events: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.servicio-label-link {
    pointer-events: auto;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
}

.servicio-label-link:hover {
    transform: translate(var(--align-x), var(--align-y)) translateX(var(--translate-x)) scale(1.05);
}

.label-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 18px;
    border: 2px solid var(--naranja);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(232, 97, 10, 0.15);
}

/* =========================================================
   HOVER BIDIRECCIONAL
   ========================================================= */

/* Hover en el grupo (círculo o label) → se pintan ambos */
.servicio-group:hover .diagram-circle {
    background: rgba(232, 97, 10, 0.2);
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(232, 97, 10, 0.2);
}

.servicio-group:hover .circle-ring-1 {
    border-color: var(--naranja);
    opacity: 1;
}

.servicio-group:hover .circle-ring-2 {
    border-color: var(--naranja);
    opacity: 1;
}

/* La imagen siempre permanece en negro (filter: brightness(0)) */
.servicio-group:hover .diagram-icon img {
    filter: brightness(0);
}

/* Label en hover: fondo naranja, texto blanco, borde naranja */
.servicio-group:hover .label-content {
    background: var(--naranja);
    color: #ffffff;
    border-color: var(--naranja);
    box-shadow: 0 4px 20px rgba(232, 97, 10, 0.4);
}

/* Hover directo en el label también lo pinta */
.servicio-label-link:hover .label-content {
    background: var(--naranja);
    color: #ffffff;
    border-color: var(--naranja);
    box-shadow: 0 4px 20px rgba(232, 97, 10, 0.4);
}

/* =========================================================
   CARRUSEL DE SERVICIOS
   ========================================================= */

.servicios-carousel {
    position: relative;
    margin-top: 10px;
    overflow: visible;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 20px;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: height;
    padding: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    align-items: flex-start;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0px;
    box-sizing: border-box;
}

.carousel-slide .slide-panel {
    padding: 8px 4px;
    overflow: hidden;
}

.carousel-slide .servicios-diagram {
    margin-top: 0;
}

.carousel-slide .info-servicio-grid {
    margin-top: 0;
}

/* Flechas anterior/siguiente */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(50, 50, 50, 0.6);
    background: rgba(30, 30, 30, 0.7);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: var(--naranja);
    border-color: var(--naranja);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 30px rgba(232, 97, 10, 0.3);
}

.carousel-prev {
    left: -64px;
}

.carousel-next {
    right: -64px;
}

/* Indicadores (puntos) */
.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(50, 50, 50, 0.6);
    padding: 0;
    cursor: pointer;
    background: rgba(30, 30, 30, 0.5);
    transition: all .3s;
    backdrop-filter: blur(10px);
}

.carousel-dot:hover {
    background: rgba(232, 97, 10, 0.3);
    border-color: var(--naranja);
    transform: scale(1.1);
}

.carousel-dot.active {
    background: var(--naranja);
    border-color: var(--naranja);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(232, 97, 10, 0.3);
}

/* =========================================================
   RESPONSIVE PARA EL DIAGRAMA
   ========================================================= */

@media(max-width: 900px) {
    .servicios-diagram {
        height: 500px;
        max-width: 500px;
        margin: 20px auto 10px;
    }
    
    .diagram-center {
        width: 120px;
        height: 120px;
    }
    
    .center-ring-1 {
        width: 120px;
        height: 120px;
    }
    
    .center-ring-2 {
        width: 140px;
        height: 140px;
    }
    
    .center-ring-3 {
        width: 160px;
        height: 160px;
    }
    
    .diagram-logo-img {
        width: 50px;
    }
    
    .diagram-circle {
        width: 75px;
        height: 75px;
    }
    
    .circle-ring-1 {
        width: 75px;
        height: 75px;
    }
    
    .circle-ring-2 {
        width: 90px;
        height: 90px;
    }
    
    .diagram-icon {
        width: 38px;
        height: 38px;
    }
    
    .diagram-icon img {
        width: 34px;
        height: 34px;
    }
    
    .label-content {
        font-size: 12px;
        padding: 6px 14px;
        border-width: 2px;
        border-radius: 20px;
    }
    
    .carousel-dots {
        margin-top: 10px;
    }
}

@media(max-width: 600px) {
    .servicios-diagram {
        height: 350px;
        max-width: 350px;
        margin: 10px auto 10px;
    }
    
    .diagram-center {
        width: 80px;
        height: 80px;
    }
    
    .center-ring-1 {
        width: 80px;
        height: 80px;
    }
    
    .center-ring-2 {
        width: 95px;
        height: 95px;
    }
    
    .center-ring-3 {
        width: 110px;
        height: 110px;
    }
    
    .diagram-logo-img {
        width: 35px;
    }
    
    /* Ocultar labels en móviles */
    .servicio-label-link {
        display: none !important;
    }
    
    /* Mostrar texto dentro del círculo en móviles */
    .diagram-label-mobile {
        display: block !important;
        font-size: 8px;
        font-weight: 700;
        color: #000000;
        text-align: center;
        line-height: 1.2;
        max-width: 58px;
        word-wrap: break-word;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    /* Ajustar círculos para móviles */
    .diagram-circle {
        width: 65px !important;
        height: 65px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4px;
    }
    
    .circle-ring-1 {
        width: 65px !important;
        height: 65px !important;
    }
    
    .circle-ring-2 {
        width: 80px !important;
        height: 80px !important;
    }
    
    .diagram-icon {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 2px;
    }
    
    .diagram-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .label-content {
        font-size: 10px;
        padding: 4px 10px;
        border-width: 1.5px;
        border-radius: 15px;
    }
    
    .carousel-dots {
        margin-top: 8px;
    }
}

/* =========================================================
   INFO-SERVICIO - DETALLE DE SERVICIOS
   ========================================================= */

.info-servicio-section {
    background: var(--fondo-seccion);
}

.info-servicio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 64px;
}

.info-servicio-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-servicio-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    transition: all .25s;
    cursor: default;
}

.info-servicio-item:hover {
    border-color: var(--naranja);
    box-shadow: 0 8px 24px rgba(232, 97, 10, 0.1);
}

.info-servicio-item-dot {
    width: 10px;
    height: 10px;
    background: var(--naranja);
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.info-servicio-item-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-servicio-item-text p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

/* =========================================================
   PANEL VISUAL - METRICAS (Mismo estilo que items)
   ========================================================= */

.info-servicio-visual {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #eee;
}

.info-servicio-metric {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all .25s;
}

.info-servicio-metric:hover {
    border-color: var(--naranja);
    box-shadow: 0 4px 16px rgba(232, 97, 10, 0.08);
}

.info-servicio-metric-label {
    font-size: 13px;
    color: var(--negro);
    min-width: 130px;
    font-weight: 500;
}

.info-servicio-metric-bar-wrap {
    flex: 1;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    height: 14px;
    overflow: hidden;
    position: relative;
}

.info-servicio-metric-bar {
    height: 100%;
    background: var(--naranja);
    border-radius: 8px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.info-servicio-metric-bar::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.info-servicio-metric-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--naranja);
    min-width: 40px;
    text-align: right;
}

/* =========================================================
   SLIDE HEAD - TÍTULO Y DESCRIPCIÓN DE SERVICIOS
   ========================================================= */

.slide-head {
    margin-bottom: 40px;
}

.slide-title {
    font-size: 35px;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.slide-desc {
    font-size: 15px;
    color: var(--negro);
    background: rgba(255, 255, 255);
    padding: 16px 20px;
    border-radius: 20px;
    line-height: 1.3;
}

/* =========================================================
   PUBLICACIONES - INDEX
   ========================================================= */

.publicaciones-section {
    background: var(--fondo-claro);
    padding: 100px 24px;
}

.publicaciones-section .section-title {
    color: var(--naranja);
}

.publicaciones-section .section-title span {
    color: var(--naranja);
}

.publicaciones-section .section-sub {
    color: #666;
}

.publicaciones-section .section-tag {
    color: var(--negro);
    background: rgba(0, 0, 0, 0.05);
}

.publicaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.publicaciones-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gris-texto);
    font-size: 16px;
    padding: 40px 0;
}

.publicaciones-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    color: var(--naranja);
}

/* =========================================================
   PUBLICACIONES - CARDS (INDEX)
   ========================================================= */

.publicacion-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.publicacion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--naranja);
}

.publicacion-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.publicacion-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.publicacion-card:hover .publicacion-card-img img {
    transform: scale(1.03);
}

.publicacion-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 48px;
}

.publicacion-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.publicacion-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.publicacion-card-categoria {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--naranja);
    background: rgba(232, 97, 10, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
}

.publicacion-card-fecha {
    font-size: 12px;
    color: var(--gris-texto);
}

.publicacion-card-titulo {
    font-size: 18px;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publicacion-card-resumen {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.publicacion-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 8px;
}

.publicacion-card-autor {
    font-size: 13px;
    color: var(--gris-texto);
}

.publicacion-card-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--naranja);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.publicacion-card-btn:hover {
    color: var(--naranja-hover);
    transform: translateX(4px);
}

.btn-publicaciones-ver-todas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--naranja);
    color: #fff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-publicaciones-ver-todas:hover {
    background: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 97, 10, 0.3);
}

/* =========================================================
   CTA - LLAMADA A LA ACCIÓN
   ========================================================= */

.cta-section {
    background: var(--negro);
    padding: 120px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(232, 97, 10, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-inner h2 span {
    color: var(--naranja);
}

.cta-inner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 48px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: var(--naranja);
    color: #fff;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-actions .btn-primary:hover {
    background: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(232, 97, 10, 0.4);
}

.cta-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* =========================================================
   CONTACTO
   ========================================================= */

.contacto-section {
    background: var(--fondo-claro);
    padding: 100px 24px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 64px;
    align-items: center;
}

.contacto-info h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
}

.ci-icon {
    width: 44px;
    height: 44px;
    background: rgba(232, 97, 10, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ci-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.ci-text p,
.ci-text a {
    font-size: 15px;
    color: var(--negro);
    text-decoration: none;
    font-weight: 500;
}

.ci-text a:hover {
    color: var(--naranja);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--negro);
    transition: all .2s;
}

.social-link:hover {
    border-color: var(--naranja);
    color: var(--naranja);
    background: rgba(232, 97, 10, 0.04);
}

.contacto-form {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #eee;
}

.contacto-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--negro);
    background: #fff;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--naranja);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #dc2626;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--naranja);
}

.input-group .prefix {
    padding: 14px 12px;
    background: #f5f5f5;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    border-right: 1.5px solid #e5e5e5;
    white-space: nowrap;
    flex-shrink: 0;
}

.input-group .input-phone {
    width: 100%;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--negro);
    background: transparent;
}

.input-group .input-phone:focus {
    outline: none;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    min-height: 14px;
}

.btn-form {
    width: 100%;
    background: var(--naranja);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
}

.btn-form:hover {
    background: var(--naranja-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 97, 10, 0.35);
}

.btn-form:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* Honeypot oculto */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* =========================================================
   MENSAJES FLASH
   ========================================================= */

.flash {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: flashIn .4s ease;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

@keyframes flashIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: var(--negro);
    padding: 60px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
	grid-template-columns: 1fr 1.5fr 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.65;
    margin-top: 16px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--naranja);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--blanco);
    text-align: center;
}

/* =========================================================
   SCROLL REVEAL - ANIMACIONES AL HACER SCROLL
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all .7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

/* =========================================================
   WHATSAPP BOTÓN FLOTANTE
   ========================================================= */

.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all .25s;
    font-size: 26px;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* =========================================================
   MISIÓN Y VISIÓN - CON FONDO NEGRO
   ========================================================= */

.mision-vision-section {
    background: var(--negro);
    position: relative;
    overflow: hidden;
    padding: 100px 24px;
}

.mision-vision-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 97, 10, 0.15) 0%, transparent 65%),
                radial-gradient(ellipse 40% 30% at 80% 80%, rgba(232, 97, 10, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.mision-vision-section .section-inner {
    position: relative;
    z-index: 1;
}

.mision-vision-section .section-title {
    color: #ffffff;
}

.mision-vision-section .section-title span {
    color: var(--naranja);
}

.mision-vision-section .section-tag {
    color: var(--naranja);
    background: rgba(232, 97, 10, 0.15);
}

.mision-vision-section .inst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.mision-vision-section .inst-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px;
    transition: all .3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.mision-vision-section .inst-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--naranja);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.mision-vision-section .inst-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 60px rgba(232, 97, 10, 0.1);
    transform: translateY(-4px);
}

.mision-vision-section .inst-card:hover::before {
    transform: scaleX(1);
}

.mision-vision-section .inst-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: #fff;
}

.mision-vision-section .inst-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
}

.mision-vision-section .inst-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mision-vision-section .inst-card-header h3 {
    margin-bottom: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width: 1340px) {
    .carousel-prev {
        left: 8px;
    }
    .carousel-next {
        right: 8px;
    }
}

@media(max-width: 900px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    .nav-mobile-btn {
        display: block;
    }
    .perfil-grid,
    .inst-grid,
    .info-servicio-grid,
    .contacto-grid,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .servicios-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    section {
        padding: 72px 24px;
    }
    .mision-vision-section .inst-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero .trust-inner {
        gap: 20px;
        padding: 16px 0;
    }
    .hero .trust-item {
        font-size: 11px;
        gap: 6px;
    }
    .hero .trust-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .carousel-prev {
        left: 4px;
    }
    .carousel-next {
        right: 4px;
    }
}

@media(max-width: 600px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .hero .trust-inner {
        gap: 12px;
        padding: 12px 0;
    }
    .hero .trust-item {
        font-size: 10px;
    }
    .hero .trust-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .hero {
        padding: 100px 16px 40px;
    }
    .mision-vision-section {
        padding: 72px 24px;
    }
    .mision-vision-section .inst-card {
        padding: 32px 24px;
    }
    .publicaciones-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PUBLICACIONES - PÁGINA COMPLETA
   ========================================================= */

.publicaciones-page {
    position: relative;
    padding: 80px 24px 60px;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Categorías */
.publicaciones-categorias {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

.pub-cat-btn {
    padding: 12px 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--negro);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.pub-cat-btn:hover {
    border-color: var(--naranja);
    color: var(--naranja);
    background: #fff;
}

.pub-cat-btn.active {
    background: var(--naranja);
    color: #fff;
    border-color: var(--naranja);
}

.pub-cat-btn i {
    margin-right: 8px;
}

/* Contador */
.publicaciones-contador {
    text-align: center;
    margin-bottom: 32px;
    font-size: 15px;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pub-count-badge {
    display: inline-block;
    background: var(--naranja);
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.publicaciones-contador strong {
    color: #fff;
}

/* Vacío */
.publicaciones-vacio {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.publicaciones-vacio i {
    font-size: 48px;
    color: #ccc;
    display: block;
    margin-bottom: 16px;
}

.publicaciones-vacio p {
    color: #666;
    font-size: 16px;
}

/* =========================================================
   ACORDEÓN DE PUBLICACIONES
   ========================================================= */

.publicaciones-acordeon {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* AÑO */
.acordeon-anio {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.acordeon-anio-btn {
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--negro);
    transition: background 0.2s;
    text-align: left;
}

.acordeon-anio-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.acordeon-anio-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acordeon-anio-label i {
    color: var(--naranja);
    font-size: 18px;
}

.acordeon-anio-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--gris-texto);
}

.acordeon-icon {
    transition: transform 0.3s ease;
    color: var(--gris-texto);
    font-size: 14px;
}

.acordeon-anio-btn.active .acordeon-icon {
    transform: rotate(180deg);
}

.acordeon-anio-content {
    display: none;
    padding: 0 24px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.acordeon-anio-content.open {
    display: block;
}

/* MES */
.acordeon-mes {
    margin-top: 8px;
}

.acordeon-mes-btn {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--negro);
    transition: background 0.2s;
    text-align: left;
}

.acordeon-mes-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.acordeon-mes-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acordeon-mes-label i {
    color: var(--naranja);
    font-size: 14px;
}

.acordeon-mes-count {
    font-size: 12px;
    font-weight: 400;
    color: var(--gris-texto);
}

.acordeon-mes-btn.active .acordeon-icon {
    transform: rotate(180deg);
}

.acordeon-mes-content {
    display: none;
    padding-top: 12px;
}

.acordeon-mes-content.open {
    display: block;
}

/* =========================================================
   TABLA DE ARTÍCULOS
   ========================================================= */

.pub-tabla-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.5);
}

.pub-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.pub-tabla thead {
    background: rgba(0, 0, 0, 0.04);
}

.pub-tabla th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-tabla td {
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}

.pub-tabla tr:hover td {
    background: rgba(255, 255, 255, 0.6);
}

.pub-tabla-col-img {
    width: 60px;
    text-align: center;
}

.pub-tabla-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.pub-tabla-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 20px;
}

.pub-tabla-col-titulo {
    min-width: 180px;
}

.pub-tabla-col-resumen {
    color: #666;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pub-tabla-col-resumen-completo {
    color: #555;
    max-width: 300px;
    line-height: 1.5;
    font-size: 13px;
    word-wrap: break-word;
}

.pub-tabla-col-fecha {
    white-space: nowrap;
    color: var(--gris-texto);
    font-size: 13px;
}

.pub-tabla-col-accion {
    text-align: center;
}

.pub-tabla-btn-ver {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: var(--naranja);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.pub-tabla-btn-ver:hover {
    background: var(--naranja-hover);
    transform: scale(1.05);
}

/* =========================================================
   ARTÍCULO DETALLE - PÁGINA
   ========================================================= */

.articulo-detalle-page {
    position: relative;
    padding: 80px 24px 60px;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.articulo-detalle-page .section-inner {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.articulo-breadcrumb {
    font-size: 14px;
    color: var(--gris-texto);
    margin-bottom: 32px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.articulo-breadcrumb a {
    color: var(--naranja);
    text-decoration: none;
}

.articulo-breadcrumb a:hover {
    text-decoration: underline;
}

.articulo-breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.articulo-breadcrumb .current {
    color: var(--negro);
    font-weight: 500;
}

/* Artículo */
.articulo-detalle {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.articulo-detalle-header-img {
    margin: -40px -40px 32px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    max-height: 400px;
}

.articulo-detalle-header-img img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
}

.articulo-detalle-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.articulo-detalle-categoria {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--naranja);
    background: rgba(232, 97, 10, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
}

.articulo-detalle-fecha {
    font-size: 13px;
    color: var(--gris-texto);
}

.articulo-detalle-autor {
    font-size: 13px;
    color: var(--gris-texto);
}

.articulo-detalle-titulo {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--negro);
    line-height: 1.2;
    margin-bottom: 16px;
}

.articulo-detalle-resumen {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    padding: 16px 20px;
    background: var(--fondo-claro);
    border-radius: 10px;
    border-left: 4px solid var(--naranja);
    margin-bottom: 32px;
}

.articulo-detalle-contenido {
    font-size: 16px;
    line-height: 1.9;
    color: var(--negro);
}

.articulo-detalle-contenido p {
    margin-bottom: 16px;
}

.articulo-detalle-contenido h2,
.articulo-detalle-contenido h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.articulo-detalle-contenido ul,
.articulo-detalle-contenido ol {
    margin: 12px 0 20px 24px;
}

.articulo-detalle-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* =========================================================
   GALERÍA - CARRUSEL DE IMÁGENES
   ========================================================= */

.articulo-detalle-subtitulo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--negro);
}

.articulo-detalle-galeria {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.galeria-carrusel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 16px;
    background: #f5f5f5;
}

.galeria-carrusel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.galeria-carrusel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    display: none;
}

.galeria-carrusel-slide.active {
    display: block;
}

.galeria-carrusel-slide img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
}

/* Botones del carrusel */
.galeria-carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.galeria-carrusel-btn:hover {
    background: var(--naranja);
    transform: translateY(-50%) scale(1.05);
}

.galeria-carrusel-prev {
    left: 12px;
}

.galeria-carrusel-next {
    right: 12px;
}

/* Indicadores (puntos) */
.galeria-carrusel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.galeria-carrusel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.galeria-carrusel-dot:hover {
    transform: scale(1.2);
}

.galeria-carrusel-dot.active {
    background: var(--naranja);
    border-color: var(--naranja);
    width: 28px;
    border-radius: 6px;
}

/* Fuentes */
.articulo-detalle-fuentes {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.articulo-detalle-fuentes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.articulo-detalle-fuentes-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    margin-bottom: 6px;
}

.articulo-detalle-fuentes-list li i {
    color: var(--naranja);
    font-size: 16px;
}

.articulo-detalle-fuentes-list li span {
    flex: 1;
    font-size: 14px;
    color: var(--negro);
}

.articulo-detalle-fuentes-list li a {
    color: var(--naranja);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.articulo-detalle-fuentes-list li a:hover {
    text-decoration: underline;
}

/* Volver */
.articulo-detalle-volver {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--negro);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: var(--naranja);
    color: #fff;
    transform: translateX(-4px);
}

/* Artículos relacionados */
.articulos-relacionados {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.articulos-relacionados-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.articulos-relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.articulo-relacionado-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.articulo-relacionado-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--naranja);
}

.articulo-relacionado-img {
    height: 120px;
    overflow: hidden;
}

.articulo-relacionado-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.articulo-relacionado-img-placeholder {
    height: 120px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
}

.articulo-relacionado-titulo {
    padding: 12px 16px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--negro);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articulo-relacionado-fecha {
    display: block;
    padding: 0 16px 16px;
    font-size: 12px;
    color: var(--gris-texto);
}

/* =========================================================
   RESPONSIVE - PUBLICACIONES Y ARTÍCULO
   ========================================================= */

@media (max-width: 900px) {
    .articulo-detalle {
        padding: 24px;
    }
    
    .articulo-detalle-header-img {
        margin: -24px -24px 24px;
    }
    
    .publicaciones-page {
        padding: 60px 16px 40px;
    }
}

@media (max-width: 768px) {
    .pub-tabla-col-resumen-completo {
        max-width: 150px;
        font-size: 12px;
    }
    
    .galeria-carrusel-slide img {
        height: 250px;
    }
    
    .galeria-carrusel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .pub-tabla-col-resumen {
        display: none;
    }
    
    .pub-tabla-col-resumen-completo {
        display: none;
    }
    
    .pub-tabla {
        font-size: 13px;
        min-width: 400px;
    }
    
    .pub-tabla td,
    .pub-tabla th {
        padding: 8px 12px;
    }
    
    .articulo-detalle {
        padding: 16px;
    }
    
    .articulo-detalle-header-img {
        margin: -16px -16px 20px;
    }
    
    .articulo-detalle-resumen {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    .articulo-detalle-contenido {
        font-size: 15px;
    }
    
    .articulos-relacionados-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .publicaciones-categorias {
        gap: 8px;
    }
    
    .pub-cat-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .acordeon-anio-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .acordeon-mes-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .galeria-carrusel-slide img {
        height: 200px;
    }
    
    .galeria-carrusel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}