/* ===== Variables de Color ===== */
/* 1. RESET Y LIMPIEZA DE MÁRGENES (BLOQUE ÚNICO) */

/* Elimina bordes blancos externos del navegador */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden; /* Evita el scroll horizontal accidental */
}
  .card-titles {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 18px;
            letter-spacing: -0.02em;
            color: #333;
        }

/* Color para los títulos de las columnas del footer */
.footer-column h3, 
.footer-column .card-titles {
    color: var(--gray-text) !important; /* Usa el gris #555 definido en tus variables */
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

/* Color para los enlaces de navegación del footer */
.footer-column ul li a {
    color: var(--gray-text) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Efecto al pasar el mouse por los enlaces del footer */
.footer-column ul li a:hover {
    color: var(--red-primary) !important; /* Cambia a vino al hacer hover */
}
/* Fuerza a los contenedores internos de WordPress a ocupar todo el ancho */
.site-content, 
.entry-content, 
.wp-block-post-content, 
.wp-block-group,
.wp-block-custom-html {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Reset universal para asegurar que el cálculo de medidas sea exacto */
* {
    box-sizing: border-box;
}
:root {
    --red-primary: rgb(127, 0, 0);
    --red-soft: rgba(127, 0, 0, 0.1);
    --gray-light: #f4f5f7;
    --gray-card: #fff;
    --gray-text: #555;
    --shadow-soft: 0 8px 25px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(127,0,0,0.2);
}
/* 1. Reset de raíz para eliminar bordes blancos externos */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* Evita que aparezca una barra de desplazamiento horizontal */
}

/* 2. Forzar contenedores de WordPress a ocupar todo el ancho */
.entry-content, 
.post-inner, 
.site-content, 
.wp-block-group,
.wp-block-post-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* 3. Ajuste específico para el bloque de HTML personalizado */
.wp-block-custom-html {
    margin: 0 !important;
}

/* ===== Reset para eliminar márgenes ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}
/* 1. Reset de raíz para eliminar bordes blancos externos */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* Evita que aparezca una barra de desplazamiento horizontal */
}

/* 2. Forzar contenedores de WordPress a ocupar todo el ancho */
.entry-content, 
.post-inner, 
.site-content, 
.wp-block-group,
.wp-block-post-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* 3. Ajuste específico para el bloque de HTML personalizado */
.wp-block-custom-html {
    margin: 0 !important;
}
/* ===== Navbar Container ===== */
.navbar {
    background: #fff;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
	
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;  /* ← Altura fija del header */
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    height: 70px;  /* ← Altura cuando haces scroll */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;  /* ← Alinea todo a la derecha */
    align-items: center;
    gap: 3rem;  /* ← Espacio entre logo y menú */
}

/* ===== Logo Empresa (Izquierda) ===== */
.company-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.95;
    height: 175%;  /* ← Ocupa toda la altura del navbar */
    padding: 0.5rem 0;  /* ← Espaciado interno */
}

.company-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.company-logo img {
    height: 100%;  /* ← La imagen se ajusta a la altura del contenedor */
    width: auto;
    object-fit: contain;
    max-height: 175px;  /* ← Límite máximo */
}

/* ===== Menú de Navegación ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

/* Enlaces normales */
.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--red-primary);
}

/* Efecto subrayado animado */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-primary);
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón de Contacto */
.btn-contact {
    background: var(--red-primary);
    color: #fff;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 0, 0, 0.2);
}

.btn-contact:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Botón de tema (dark mode toggle) */
.theme-toggle {
    background: var(--gray-light);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: var(--shadow-soft);
}

.theme-toggle:hover {
    background: var(--red-primary);
    color: #fff;
    transform: rotate(15deg);
    box-shadow: var(--shadow-hover);
}

.theme-toggle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* ===== Botón Hamburguesa ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--red-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* ===== Responsive Mobile ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 1.5rem;
        justify-content: space-between;  /* ← En móvil vuelve a separar */
    }

    .company-logo img {
        height: 45px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: #fff;
        width: 280px;
        height: 100vh;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        transition: right 0.4s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }

    .nav-link::after {
        bottom: 0;
    }

    .btn-contact {
        display: block;
        text-align: center;
        width: 100%;
    }

    .theme-toggle {
        width: 100%;
        height: 50px;
        border-radius: 30px;
    }

    .nav-logo span {
        font-size: 1.1rem;
    }

    .nav-container {
        padding: 0 1.5rem;
    }
}

/* ===== Animación entrada mobile ===== */
@media (max-width: 768px) {
    .nav-menu li {
        opacity: 0;
        transform: translateX(50px);
    }

    .nav-menu.active li {
        animation: slideIn 0.5s ease forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Overlay para móvil ===== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Modo oscuro ===== */
body.dark-mode {
    background: #1a1a1a;
    color: #f4f5f7;
}

body.dark-mode .navbar {
    background: #2a2a2a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

body.dark-mode .nav-link {
    color: #f4f5f7;
}

body.dark-mode .nav-link:hover {
    color: #ff4444;
}

body.dark-mode .theme-toggle {
    background: #1a1a1a;
    color: #f4f5f7;
}

body.dark-mode .nav-menu {
    background: #2a2a2a;
}

body.dark-mode .hamburger-line {
    background: #f4f5f7;
}

/* News Section */
/* ===== Noticias dinámicas ===== */
.news-section {
    background: var(--gray-light);
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: rgb(127, 0, 0);
}

.section-header p {
    color: var(--gray-text);
}

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Card */
.news-card {
    background: var(--gray-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
}

.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, var(--red-soft));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

/* Imagen */
.news-image {
    position: relative;
    height: 230px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Tag flotante */
.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgb(224, 221, 220);
    color: #fff;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contenido */
.news-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.news-date {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
}

/* ELIMINACION DEFINITIVA DE TITULOS NEGROS */

/* 1. Selector unificado para los títulos del carrusel */
.card-title, 
.card-titles, 
.service-card h3 {
    font-family: 'Syne', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 18px !important;
    letter-spacing: -0.02em !important;
    color: #6b6b6b !important; /* El gris que buscas */
    text-transform: none !important;
    -webkit-text-stroke: 0px !important;
    text-shadow: none !important;
}

/* 2. Asegurar que si hay enlaces dentro, hereden el color */
.card-title a, 
.card-titles a, 
.service-card h3 a {
    color: #333 !important;
    text-decoration: none !important;
}

/* 3. Efecto Hover (opcional, por si quieres que oscurezca al pasar el mouse) */
.service-card:hover .card-title,
.service-card:hover h3 {
    color: #333 !important;
    transition: color 0.3s ease;
}
 .card-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 18px;
            letter-spacing: -0.02em;
            color: #333;
        }
.news-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Botón animado */
.news-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
outline: none !important;            /* Quita el borde de enfoque */
    box-shadow: none !important;         /* Quita sombras que parezcan bordes */
    -webkit-tap-highlight-color: transparent; /* Quita el destello en móviles */
}

/* También es importante asegurar que no aparezca al hacer clic (active) */
.news-btn:focus, 
.news-btn:active {
    outline: none !important;
    background: #333; /* Mantén su color original o el de hover */
}

.news-btn:hover {
    background: #000;
    transform: translateX(5px);
}
/* ===== ESTILO DEL TÍTULO HERO (IGUAL A LOCAL) ===== */

/* ===== UNIFICACIÓN DE TIPOGRAFÍA PARA TÍTULOS ===== */

/* Título Principal (Hero) */
.services-hero .hero-title, 
#servicios .hero-title,
.article-hero h1 {
  font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif !important;
    font-size: clamp(1.8rem, 3vw, 2.8rem) !important; /* Tamaño más pequeño y elegante */
    font-weight: 200 !important; /* Aquí está el secreto: 200 es "Extra Light" */
    letter-spacing: -0.01em !important; /* Espaciado suave */
    line-height: 1.2 !important;
    color:#ffff;
    text-transform: none !important;
}

/* Efecto Contorno (Outline) para la palabra "Importante" */
.slogan-outline {
    font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif !important;
    color: transparent !important;
    -webkit-text-stroke: 1px #8B1E1E !important; /* Color vino de la marca */
    text-stroke: 1px #8B1E1E !important;
    font-weight: 800 !important;
}

/* Subtítulo con línea roja (Informática Forense) */
.title-sub {
    font-family: 'Syne', sans-serif !important;
    font-weight: 700 !important;
    border-left: 4px solid #8B1E1E !important;
    padding-left: 15px !important;
    margin-top: 15px !important;
    color: #8B1E1E !important;
}
/* ===== ESTILO DEL TÍTULO HERO (IGUAL A LOCAL) ===== */

.services-hero .hero-title {
    font-family: 'Syne', sans-serif !important; /* Asegúrate de que Syne esté instalada en WP */
    font-weight: 800 !important;
    text-transform: none;
    line-height: 1.1;
    letter-spacing: -1px;
}

.services-hero .hero-title em {
    font-family: 'Syne', sans-serif !important; /* Cambiado de font-style a font-family */
    font-style: normal !important;            /* Quita la inclinación predeterminada del em */
    color:#333;
    -webkit-text-stroke: 2px #333 !important; /* Grosor de borde profesional */
    text-decoration: none !important;
    display: inline-block;
}

/* Ajuste de color para "Informatica Forense" para que use el vino de tu marca */
.services-hero .hero-title span.color-vino {
    color: var(--red-primary) !important;
}
/* News Section */
/* ===== Articulo ===== */
/* ===== Artículo ===== */
.article-container {
    background: #f4f5f7;
    color: #3B2727;
}

/* Hero */
.article-hero {
   background: white; /* O transparent */
    color: #333 !important; /* Fuerza el texto a gris oscuro/negro */
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.article-hero-content {
    text-align: center;
    max-width: 800px;
    color: #333;
    padding: 0 1rem;
}

.article-category {
    background: #fff;
    color: rgb(127,0,0);
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
}

.article-hero h1 {
    font-size: 3rem;
    margin: 1.5rem 0;
	 color: #333;
}

.article-meta {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Contenido */
.article-content {
    max-width: 900px;
    margin: -80px auto 4rem;
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}


.article-content h2 {
    color: rgb(171, 171, 171);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.2rem;
}

.intro {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Imágenes */
.article-image {
    width: 100%;
    border-radius: 16px;
    margin: 2rem 0;
}

/* Cita */
blockquote {
    border-left: 5px solid rgb(127,0,0);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #444;
    background: rgba(127,0,0,0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

/* Fuentes */
.article-sources {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.article-sources h3 {
    color: rgb(127,0,0);
    margin-bottom: 1rem;
}

.article-sources ul {
    padding-left: 1.2rem;
}

.article-sources li {
    margin-bottom: 0.6rem;
    color: #555;
}
/* Segunda imagen despues de la principal */
.article-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 4rem 0;
    align-items: center;
}

.media-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .article-media {
        grid-template-columns: 1fr;
    }
}
footer::before {
    /* ... resto del código igual ... */
    transform: none !important; /* Elimina el movimiento del mouse que causa error */
    animation: footerPulse 4s ease-in-out infinite;
}
/* REPARACIÓN FOOTER WORDPRESS */
footer .container {
    max-width: 1200px;
    margin: 0 auto !important;
}

.footer-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 40px !important;
}

.footer-column i {
    color: #B91C1C !important;
    margin-right: 8px;
    font-style: normal;
}

.footer-column a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Evitar que el fondo tape el texto */
footer {
    position: relative;
    z-index: 1;
}

footer::before {
    z-index: -1 !important;
}
/* Resetea la lista para que no tenga sangría */
.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Alinea cada elemento de la lista a la izquierda */
.footer-column li {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    width: 100%;
	/* Fuerza el estilo del hero title igual que en local */
	}
/* ══ FIX: Hero título servicios ══ */

/* Fuerza la fuente Syne en el título */
#servicios .hero-title,
.services-hero .hero-title {
line-height: 0.85 !important; /* Reducimos el espacio entre líneas */
    gap: 0 !important;
}

/* Parte pequeña "Soluciones Integrales en" */
#servicios .hero-title .title-small,
.services-hero .hero-title .title-small {
    font-size: clamp(1rem, 2.5vw, 1.8rem) !important;
    font-weight: 500 !important;
    color: var(--gray-text) !important;
    margin-bottom: 10px !important;
    display: block !important;
}
.title-slogan {
 margin-bottom: -5px !important; /* Ajuste fino para pegar las líneas */
}

/* EFECTO DE CONTORNO VINO EN "IMPORTANTE" */
.slogan-outline {
color: transparent !important;
    -webkit-text-stroke: 1px #8B1E1E !important; /* Bajamos de 1.5px a 1px */
    text-stroke: 1px #8B1E1E !important;
    letter-spacing: 1px !important; /* Añadimos un poco de aire entre letras */
}

/* Subtítulo: Informática Forense */
.title-sub {
   margin-top: 15px !important;
    padding-left: 0 !important; /* Eliminamos el padding que lo empuja */
    border-left: 4px solid #8B1E1E !important; /* Hacemos la línea roja un poco más gruesa como en el local */
    padding-left: 15px !important; /* Ahora sí ponemos el espacio después de la línea */
    margin-left: 0 !important;
}

/* Parte grande "INFORMÁTICA FORENSE" */
#servicios .hero-title .title-large {
  display: block !important;
    font-size: clamp(2rem, 4.5vw, 4.5rem) !important;
    color: #333 !important;
    text-transform: uppercase !important;
    line-height: 0.95 !important;
    -webkit-text-stroke: 0 !important;
    background: none !important;
    white-space: nowrap !important;      /* ← evita que corte palabras */
    word-break: keep-all !important;
    overflow: visible !important;
	margin:0 0 3px 0 ;
}

/* Neutraliza estilos WP que afectan h1/h2 dentro del hero */
.services-hero h1,
.services-hero h1 span,
.services-hero h1 em {
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}
#servicios .hero-content,
.services-hero .hero-content {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
}

#servicios .hero-title,
.services-hero .hero-title {
display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important; /* Elimina espacios extra entre líneas */
    line-height: 1 !important;
    text-align: left !important;
}
 display: none !important;


/* 1. ELIMINACIÓN GLOBAL DE RECUADROS DE ENFOQUE */
:focus, :active, button:focus, button:active, a:focus, a:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* 2. ESPECÍFICO PARA LAS FLECHAS (Slick, Swiper y genéricos) */
.slick-prev, .slick-next, 
.swiper-button-prev, .swiper-button-next, 
.owl-prev, .owl-next,
button[class*="carousel"], 
button[class*="slider"] {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 3. EVITAR QUE EL FONDO CAMBIE A VINO AL HACER CLICK */
.news-btn:focus, .news-btn:active, 
.slick-arrow:focus, .slick-arrow:active {
    background-color: #333 !important; /* O el color original que desees */
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    box-shadow: none;
    
    /* Dimensiones para el área clickeable, el icono será más pequeño */
    width: 40px; 
    height: 40px;
    
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Quitamos padding por defecto */
    
    /* Transición suave solo para la opacidad o transform si decides usar hover */
    transition: all 0.2s ease-in-out;
}
/* Limpieza definitiva de los botones del carrusel */
.scroll-btn, 
button.scroll-btn, 
.scroll-btn:focus, 
.scroll-btn:active, 
.scroll-btn:hover {
    background: none !important;      /* Elimina el color vino de fondo */
    background-color: transparent !important; 
    border: none !important;          /* Elimina bordes */
    box-shadow: none !important;      /* Elimina sombras */
    outline: none !important;         /* Elimina el recuadro de enfoque */
    appearance: none;
    -webkit-appearance: none;
}

/* Área de click y posición */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; 
    height: 50px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-btn::after {
    content: '';
    width: 15px;
    height: 15px;
    /* Dibujamos la flecha con los bordes del color de tu marca */
    border-right: 3px solid #8B1E1E; 
    border-bottom: 3px solid #8B1E1E;
    display: block;
}

/* Dirección de la flecha izquierda */
.prev-btn::after {
    transform: rotate(135deg); /* Apunta a la izquierda */
    margin-left: 5px;
}

/* Dirección de la flecha derecha */
.next-btn::after {
    transform: rotate(-45deg); /* Apunta a la derecha */
    margin-right: 5px;
}

/* Efecto hover solo en la flecha */
.scroll-btn:hover::after {
    border-color: #000; /* Cambia a negro al pasar el mouse */
}
/* Esto asegura que el color blanco sea la prioridad absoluta */
.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0,0,0,.4);
    letter-spacing: -1px;
    color: #FFFFFF !important; /* El !important rompe cualquier bloqueo del CSS global */
}
@media (max-width: 768px) {
    .navbar {
        height: 70px; /* Reducimos altura para ganar espacio en pantalla */
    }
    
    .company-logo {
        height: 140%; /* Ajuste para que el logo no se vea diminuto */
    }

    /* Evitar que el menú móvil sea demasiado ancho */
    .nav-menu {
        width: 85%; 
        max-width: 300px;
    }
}
@media (max-width: 768px) {
    .news-section {
        padding: 3rem 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr; /* Forzamos una sola columna */
        gap: 1.5rem;
    }

    .news-image {
        height: 180px; /* Imagen un poco más pequeña en móvil */
    }

    /* Ajuste del Footer que ya tenías pero reforzado */
    footer .footer-container {
        grid-template-columns: 1fr !important;
        text-align: center; /* Centramos el contenido para mejor estética móvil */
        gap: 30px !important;
    }
    
    footer .footer-logo {
        text-align: center !important;
    }
}
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        width: 100%;
    }
    
    /* Aseguramos que nada se salga del ancho de la pantalla */
    .article-hero-content, .section-header {
        width: 100%;
        padding: 0 15px;
    }
}
/* 4. Selector para el título dentro de la ventana emergente (Modal) */
.modal-content h2, 
.modal-title, 
.popup-content h3,
#modal-service-title {
    font-family: 'Syne', sans-serif !important;
    color: #6b6b6b !important;
    font-weight: 700 !important;
    text-transform: none !important;
    -webkit-text-stroke: 0px !important;
    text-shadow: none !important;
}
@media (max-width: 768px) {
    /* 1. Asegura que el logo y la hamburguesa estén en los extremos */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 1.5rem !important;
        width: 100% !important;
        gap: 0 !important; /* Elimina espacios extra */
    }

    /* 2. Ajusta el tamaño del logo para que no empuje el menú */
    .company-logo {
        height: 50px !important; /* Ajuste manual según tu logo */
        width: auto !important;
        flex-shrink: 0;
    }

    .company-logo img {
        height: 100% !important;
        width: auto !important;
    }

    /* 3. El botón hamburguesa (siempre visible en móvil) */
    .hamburger {
        display: flex !important;
        order: 2; /* Lo manda a la derecha */
    }

    /* 4. El menú lateral que aparece al dar click */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Escondido por defecto */
        width: 280px !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 80px 2rem 2rem !important;
        transition: right 0.4s ease-in-out !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1) !important;
        z-index: 999 !important;
    }

    /* Cuando el menú está abierto */
    .nav-menu.active {
        right: 0 !important;
    }
}
@media (max-width: 768px) {
    /* Fuerza la visibilidad total cuando la clase .active está presente */
    .nav-menu.active {
        right: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important; /* El valor más alto posible */
    }
    
    /* Asegura que el botón de las tres rayitas no sea blanco sobre blanco */
    .hamburger-line {
        background-color: #8B1E1E !important; /* El rojo de FRevidence */
    }
}
/* ===== FIX: Neutralizar conflicto nav-menu antiguo en móvil ===== */
#site-header .nav-menu {
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    flex-direction: row !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    overflow: visible !important;
}

/* Solo en móvil: comportamiento correcto del menú de #site-header */
@media (max-width: 768px) {
    #site-header .nav-menu {
        position: static !important;
        right: auto !important;
        flex-direction: column !important;
        display: none !important; /* Oculto por defecto en móvil */
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        padding: 10px 0 6px !important;
        box-shadow: none !important;
    }

    #site-header .nav-menu.open {
        display: flex !important;
    }

    /* Asegura que la hamburguesa sea visible */
    #site-header .nav-toggle {
        display: flex !important;
    }
}
/* Ocultar header nativo de Astra */
.site-header,
#masthead,
.ast-site-header-wrap,
.main-header-bar,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar {
    display: none !important;
}
/* Ocultar cabecera de Astra completamente */
#masthead {
    display: none !important;
}
/* Reducir tamaño del header en móvil */
@media (max-width: 67px) {
    #frev-header {
        margin-top: 1px !important;
        padding: 8px 0 !important;
    }

    #frev-logo img {
        height: 12px !important;
    }

    #frev-menu {
        gap: 6px !important;
        padding: 4px 8px !important;
    }

    #frev-menu li a {
        font-size: 0.78rem !important;
        padding: 4px 8px !important;
    }
}

/* Empujar el contenido de la página hacia abajo para no quedar tapado */
.site-content,
.content-area,
#content,
.ast-container,
.entry-content {
    padding-top: 5px!important;
	 margin-top: o !important;
	color:transparent;
}
/* Header transparente en móvil (sin scroll) */
@media (max-width: 999px) {
    #frev-header {
        background: transparent !important;
    }
}