@charset "UTF-8";

/*
 * North Secure - Styles Securizados
 * Versión: 3.0 - Sistema de Estilos Protegido
 * Protecciones implementadas: Anti-CSS injection, sanitización, optimización
 */

/* SOLUCIÓN DEFINITIVA PARA EL SOLAPAMIENTO */
html {
    scroll-padding-top: 120px; /* Más espacio para compensar header */
    /* Protección contra manipulación de scroll */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* North Secure - Styles con protecciones de seguridad */
* {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box;
    /* Protección contra CSS injection */
    -webkit-user-select: inherit;
    -moz-user-select: inherit;
    -ms-user-select: inherit;
    user-select: inherit;
}

/* Protección adicional para elementos potencialmente vulnerables */
*:before,
*:after {
    content: none;
    /* Evitar inyección de contenido malicioso */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 90px; /* COMPENSAR EL HEADER FIJO */
    margin-top: 0;
    /* Protecciones de seguridad */
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevenir manipulación de contenido */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Protección contra ataques de CSS injection via content */
body::before,
body::after {
    content: "" !important;
}

/* Header - FIJO con protecciones mejoradas */
.header {
    background: linear-gradient(135deg, #8b1a1e 0%, #5d1113 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 58px;
    /* Protecciones adicionales */
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Protección contra layout manipulation */
    position: relative;
    min-height: 50px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    /* Protección del logo */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    /* Protección de imagen */
    position: relative;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    /* Protecciones de imagen */
    max-width: 50px;
    max-height: 50px;
    image-rendering: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    /* Protección del menú */
    position: relative;
    z-index: 100;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    /* Protecciones de enlaces */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Protección del pseudo-elemento */
    pointer-events: none;
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Hero Section - SIN MARGIN-TOP con protecciones */
.hero {
    background: linear-gradient(135deg, #c1272d 0%, #8b1a1e 50%, #5d1113 100%);
    color: white;
    padding: 100px 0; /* REDUCIDO PADDING TOP */
    text-align: center;
    position: static;
    overflow: hidden;
    margin-top: 0; /* SIN MARGIN */
    /* Protecciones adicionales */
    min-height: 400px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    /* Protección del pseudo-elemento */
    pointer-events: none;
    user-select: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    /* Protección del contenido */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffffff, #ffebeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Protecciones del título */
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    /* Protecciones del párrafo */
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(255,107,107,0.3);
    position: relative;
    overflow: hidden;
    /* Protecciones del botón */
    min-width: 200px;
    min-height: 54px;
    text-align: center;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    /* Protección del pseudo-elemento */
    pointer-events: none;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,107,107,0.4);
}

/* TODAS LAS SECCIONES CON SCROLL-MARGIN-TOP */
.services,
.stats,
.process,
.news,
.footer {
    scroll-margin-top: 120px; /* ESPACIO PARA EL HEADER */
    /* Protección de secciones */
    position: relative;
    z-index: 1;
}

/* Services Section con protecciones */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: static;
    /* Protecciones adicionales */
    overflow: hidden;
    min-height: 400px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    /* Protección del contenedor */
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
    /* Protecciones del título */
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(45deg, #c1272d, #8b1a1e);
    border-radius: 3px;
    /* Protección del pseudo-elemento */
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    /* Protección de la grid */
    width: 100%;
    max-width: 100%;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Protecciones de la tarjeta */
    min-height: 300px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #c1272d, #8b1a1e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    /* Protección del pseudo-elemento */
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, #c1272d, #8b1a1e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    transition: all 0.3s ease;
    /* Protecciones del icono */
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    line-height: 1;
    text-align: center;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    /* Protecciones del título */
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    /* Protecciones del párrafo */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Stats Section con protecciones */
.stats {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    /* Protecciones adicionales */
    overflow: hidden;
    min-height: 300px;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    /* Protección del pseudo-elemento */
    pointer-events: none;
    user-select: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    /* Protección de la grid */
    width: 100%;
}

.stat-item {
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    /* Protecciones del item */
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #ff6b6b;
    font-weight: 700;
    transition: transform 0.2s ease;
    /* Protecciones del número */
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
    text-align: center;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
    /* Protecciones del texto */
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

/* Process Section con protecciones */
.process {
    padding: 100px 0;
    background: white;
    position: static;
    /* Protecciones adicionales */
    overflow: hidden;
    min-height: 400px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
    /* Protección de la grid */
    width: 100%;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 280px;
    /* Protecciones del paso */
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: #c1272d;
    box-shadow: 0 20px 40px rgba(193,39,45,0.1);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #c1272d, #8b1a1e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    position: relative;
    /* Protecciones del número */
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
    text-align: center;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #c1272d;
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.3s ease;
    /* Protección del pseudo-elemento */
    pointer-events: none;
}

.process-step:hover .step-number::after {
    opacity: 0.3;
    transform: scale(1.4);
}

.process-step h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    /* Protecciones del título */
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

.process-step p {
    color: #666;
    line-height: 1.7;
    /* Protecciones del párrafo */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* News Section con protecciones mejoradas */
.news {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: static;
    /* Protecciones adicionales */
    overflow: hidden;
    min-height: 400px;
}

.news-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    /* Protecciones del filtro */
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.filter-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #2c3e50;
    border: 2px solid transparent;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    /* Protecciones del botón */
    min-height: 40px;
    min-width: 80px;
    user-select: none;
    -webkit-user-select: none;
    text-align: center;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #c1272d, #8b1a1e);
    transition: left 0.3s ease;
    z-index: -1;
    /* Protección del pseudo-elemento */
    pointer-events: none;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(193,39,45,0.3);
}

.filter-btn.active {
    background: linear-gradient(45deg, #c1272d, #8b1a1e);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(193,39,45,0.4);
}

.filter-btn.active::before {
    left: 0;
}

/* Noticias Grid - Sistema Corregido con protecciones */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    /* Protección de la grid */
    width: 100%;
    max-width: 100%;
    position: relative;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    /* ALTURA FLEXIBLE en lugar de fija */
    min-height: 280px; /* Altura mínima en lugar de fija */
    display: flex;
    flex-direction: column;
    /* Protecciones adicionales */
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: 1px solid transparent;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(193,39,45,0.9), rgba(139,26,30,0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    /* Protección del pseudo-elemento */
    pointer-events: none;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    z-index: 10;
}

.news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
    flex-shrink: 0; /* Evitar que la imagen se comprima */
    /* Protecciones de imagen */
    max-width: 100%;
    image-rendering: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.news-card:hover .news-card-image {
    transform: scale(1.1);
}

.news-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 3;
    /* ALTURA FLEXIBLE para ajustarse al contenido */
    flex-grow: 1; /* Permitir que crezca según el contenido */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Protecciones del contenido */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.news-card-content-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Protecciones del contenido hover */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    pointer-events: none;
}

.news-card:hover .news-card-content-hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.news-card:hover .news-card-content {
    opacity: 0;
}

.news-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    /* QUITAR limitación de líneas para mostrar título completo */
    /* Protecciones del título */
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 100%;
}

.news-card-content-hover h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: block;
    /* Protecciones del título en hover */
    word-break: break-word;
    hyphens: auto;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    /* QUITAR limitación de líneas para mostrar texto completo */
    /* Protecciones del párrafo */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.news-card-content-hover p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    display: block;
    margin-bottom: 1.5rem;
    /* Protecciones del párrafo en hover */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Empujar hacia abajo */
    /* Protecciones de los metadatos */
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 30px;
}

.news-date {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    /* Protecciones de la fecha */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    user-select: none;
    -webkit-user-select: none;
}

.news-card-content-hover .news-date {
    color: rgba(255,255,255,0.8);
    /* Protecciones de la fecha en hover */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-category {
    background: linear-gradient(45deg, #c1272d, #8b1a1e);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Protecciones de la categoría */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    user-select: none;
    -webkit-user-select: none;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

.news-card-content-hover .news-category {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Protecciones adicionales */
    border: 1px solid rgba(255,255,255,0.1);
}

.read-more-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 1rem;
    /* Protecciones del botón */
    min-width: 100px;
    min-height: 32px;
    user-select: none;
    -webkit-user-select: none;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.read-more-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Footer con protecciones mejoradas */
.footer {
    padding: 80px 0 30px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: relative;
    /* Protecciones adicionales */
    overflow: hidden;
    min-height: 300px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    /* Protección del pseudo-elemento */
    pointer-events: none;
    user-select: none;
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    /* Protección del contenido */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.footer-section {
    /* Protecciones de la sección */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    position: relative;
}

.footer-section h3 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    /* Protecciones del título */
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 100%;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    /* Protecciones de texto y enlaces */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

/* Protección especial para el enlace de administración */
.admin-link {
    color: #bdc3c7 !important;
    font-weight: normal !important;
    text-decoration: none;
    transition: all 0.3s ease;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    /* Protecciones adicionales del enlace admin */
    display: inline-block;
    padding: 0.5rem 0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 200px;
}

.admin-link:hover {
    color: #ff6b6b !important;
    transform: translateX(5px);
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    position: relative;
    z-index: 1;
    /* Protecciones del footer bottom */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Loading Animation con protecciones */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    color: #666;
    /* Protecciones del loading */
    position: relative;
    min-height: 100px;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c1272d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
    /* Protecciones del spinner */
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive con protecciones mejoradas */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        /* Protección responsive */
        max-width: 100%;
        overflow: hidden;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        /* Protección responsive */
        max-width: 100%;
        overflow: hidden;
    }
    
    .process-step {
        min-height: 250px;
        padding: 1.5rem 1rem;
        /* Protección responsive */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        /* Protección responsive */
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Protección: ocultar menú en móvil */
    }

    body {
        padding-top: 80px; /* Menos padding en móvil */
        /* Protecciones adicionales en móvil */
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero h1 {
        font-size: 2.8rem;
        /* Protecciones del título en móvil */
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .hero p {
        font-size: 1.2rem;
        /* Protecciones del párrafo en móvil */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-title {
        font-size: 2.2rem;
        /* Protecciones del título de sección */
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
        /* Protección: una columna en móvil */
        max-width: 100%;
        overflow: hidden;
    }
    
    .stats-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
        /* Protección: una columna en móvil */
        max-width: 100%;
        overflow: hidden;
    }
    
    .stat-item {
        min-height: 120px;
        padding: 1.5rem 1rem;
        /* Protecciones del item de estadística */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .process-step {
        min-height: 220px;
        padding: 1.5rem 1rem;
        /* Protecciones del paso del proceso */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .news-filters {
        gap: 0.4rem;
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
        max-width: 95%;
        /* Protecciones de los filtros */
        overflow: hidden;
        border: 1px solid #ddd;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        flex-shrink: 0;
        /* Protecciones del botón de filtro */
        min-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-card {
        min-height: 250px; /* Reducir altura mínima en móvil */
        /* Protecciones de la tarjeta en móvil */
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .news-card-image {
        height: 140px; /* Reducir altura de imagen en móvil */
        /* Protecciones de imagen en móvil */
        max-width: 100%;
        object-fit: cover;
    }
    
    .news-card-content {
        padding: 1rem;
        /* Protecciones del contenido en móvil */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .news-card-content-hover {
        padding: 1.5rem;
        /* Protecciones del contenido hover en móvil */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .logo {
        font-size: 1.4rem;
        /* Protecciones del logo en móvil */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        /* Protecciones del icono en móvil */
        flex-shrink: 0;
    }

    .container {
        padding: 0 1rem;
        /* Protecciones del contenedor en móvil */
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .news-filters {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        padding: 0.75rem;
        /* Protecciones para pantallas muy pequeñas */
        max-width: 100%;
        border-radius: 15px;
    }

    .news-filters::-webkit-scrollbar {
        display: none;
        /* Ocultar scrollbar en webkit */
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        flex-shrink: 0;
        /* Protecciones extremas para móvil pequeño */
        min-width: 50px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-card {
        min-height: 220px;
        /* Protecciones para tarjetas muy pequeñas */
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .news-card-image {
        height: 120px;
        /* Protecciones de imagen para móvil pequeño */
        max-width: 100%;
        object-fit: cover;
    }
    
    .news-card h3 {
        font-size: 1.1rem;
        /* Protecciones del título para móvil pequeño */
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
    
    .news-card p {
        font-size: 0.9rem;
        /* Protecciones del párrafo para móvil pequeño */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero h1 {
        font-size: 2rem;
        /* Protecciones del título hero para móvil pequeño */
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }

    .hero p {
        font-size: 1rem;
        /* Protecciones del párrafo hero para móvil pequeño */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
        /* Protecciones del botón CTA para móvil pequeño */
        min-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Animations con protecciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
    /* Protección de la animación */
    animation-fill-mode: both;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}

/* Scroll Animations con protecciones */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
    /* Protección de la animación */
    animation-fill-mode: both;
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
    /* Protección de la animación */
    animation-fill-mode: both;
}

/* Utility Classes con protecciones */
.text-center {
    text-align: center;
    /* Protección de utilidad */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mb-1 { 
    margin-bottom: 1rem;
    /* Protección de margen */
    max-width: 100%;
}
.mb-2 { 
    margin-bottom: 2rem;
    /* Protección de margen */
    max-width: 100%;
}
.mb-3 { 
    margin-bottom: 3rem;
    /* Protección de margen */
    max-width: 100%;
}

.mt-1 { 
    margin-top: 1rem;
    /* Protección de margen */
    max-width: 100%;
}
.mt-2 { 
    margin-top: 2rem;
    /* Protección de margen */
    max-width: 100%;
}
.mt-3 { 
    margin-top: 3rem;
    /* Protección de margen */
    max-width: 100%;
}

.p-1 { 
    padding: 1rem;
    /* Protección de padding */
    box-sizing: border-box;
}
.p-2 { 
    padding: 2rem;
    /* Protección de padding */
    box-sizing: border-box;
}
.p-3 { 
    padding: 3rem;
    /* Protección de padding */
    box-sizing: border-box;
}

/* Dark mode support con protecciones mejoradas */
@media (prefers-color-scheme: dark) {
    .service-card,
    .news-card {
        background: #2c3e50;
        color: #ecf0f1;
        /* Protecciones para modo oscuro */
        border: 1px solid #34495e;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .service-card h3,
    .news-card h3 {
        color: #ecf0f1;
        /* Protecciones de títulos en modo oscuro */
        word-break: break-word;
        hyphens: auto;
    }

    .service-card p,
    .news-card p {
        color: #bdc3c7;
        /* Protecciones de párrafos en modo oscuro */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Protecciones contra elementos maliciosos */
.close-btn,
.news-close,
.btn-close,
.close-button,
.news-card .close,
.news-card .btn-danger,
.news-card [class*="close"],
.news-card [class*="delete"],
.news-card .fa-times,
.news-card .fa-close {
    display: none !important;
    /* Protección contra botones maliciosos */
    visibility: hidden !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Protecciones adicionales contra inyección */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    /* Protecciones de inputs */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    user-select: text;
    -webkit-user-select: text;
}

/* Protección contra contenido externo malicioso */
iframe,
embed,
object {
    /* Protecciones de contenido embebido */
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Protecciones contra manipulación de formularios */
form {
    /* Protecciones de formularios */
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

/* Print Styles con protecciones */
@media print {
    .header,
    .admin-access,
    .news-filters {
        display: none !important;
        /* Protección: ocultar elementos innecesarios en impresión */
    }

    .hero {
        padding: 2rem 0;
        background: none !important;
        color: #333 !important;
        /* Protecciones para impresión */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .service-card,
    .news-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        /* Protecciones de tarjetas en impresión */
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Protecciones adicionales para impresión */
    * {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline !important;
        color: #000 !important;
    }
}

/* Protección final contra CSS injection */
html,
body,
* {
    /* Protección universal contra manipulación */
    -webkit-font-feature-settings: normal;
    -moz-font-feature-settings: normal;
    font-feature-settings: normal;
    font-variant-numeric: normal;
    font-variant-ligatures: normal;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    box-sizing: border-box;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: whatsappBounce 2s ease-in-out infinite;
    overflow: hidden;
    padding: 15px;
    max-width: 60px;
}

.whatsapp-float:hover {
    max-width: 250px;
    padding: 15px 20px;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

.whatsapp-text {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-left: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease 0.1s;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes whatsappPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8);
    }
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50px;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.whatsapp-float:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        padding: 12px;
        max-width: 55px;
    }
    
    .whatsapp-float:hover {
        max-width: 200px;
        padding: 12px 16px;
    }
    
    .whatsapp-icon {
        width: 25px;
        height: 25px;
    }
    
    .whatsapp-text {
        font-size: 13px;
        margin-left: 10px;
    }
    
    .whatsapp-pulse {
        width: 55px;
        height: 55px;
    }
}

/* Fin de protecciones CSS - North Secure v3.0 */