:root {
    /* COLORES */
    --bg-main: #050505;
    --bg-card: #121212;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    
    /* NEON ACCENTS */
    --green-deep: #206154;
    --blue-neon: #489CE0;
    --cyan-neon: #02B3CF;
    --green-mint: #48E08F;
    
    /* GRADIENTES */
    --brand-gradient: linear-gradient(135deg, var(--blue-neon) 0%, var(--cyan-neon) 100%);
    --text-gradient: linear-gradient(90deg, #ffffff 0%, var(--blue-neon) 100%);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
}

/* ESTILOS DEL FONDO DE PARTÍCULAS */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

a { text-decoration: none; }
ul { list-style: none; }

/* ANIMACIONES */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
        /* ... */
    z-index: 9999; /* Asegura que siempre esté arriba de todo */
}


.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span { color: var(--blue-neon); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* BOTONES */
.btn-glow {
    background: var(--brand-gradient);
    color: #000;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(72, 156, 224, 0.4);
}

.btn-outline {
    padding: 10px 24px; 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 50px; 
    color: white;
    transition: background 0.3s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* HERO */
/* --- HERO SECTION (Más ancho y centrado) --- */

.hero {
    /* 1. Centrado Vertical Perfecto */
    min-height: 100vh; /* Ocupa el 100% de la altura de la ventana */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente */
    align-items: center;     /* Centra horizontalmente */
    text-align: center;
    padding: 0 5%;           /* Margen lateral seguro */
    position: relative;
}

/* 2. Título más ancho */
.hero h1 {
    font-size: 4rem; /* Tamaño grande */
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    width: 100%;
    max-width: 1200px; /* Permite que el título se estire mucho más */
    margin-left: auto;
    margin-right: auto;
}

/* 3. Subtítulo más ancho */
.hero-subtitle {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 600;
    
    width: 100%;
    max-width: 1100px; /* Más ancho */
    margin-left: auto;
    margin-right: auto;
}

/* 4. Párrafo MUCHO más ancho */
.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 50px;
    
    width: 100%;
    max-width: 1200px; /* Aumentado de 900px a 1200px para llenar la pantalla */
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste para móviles (para que no se rompa en pantallas chicas) */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .hero p { font-size: 1rem; }
    /* En móvil sí queremos márgenes para que no toque los bordes */
    .hero { padding: 100px 20px; } 
}

/* Badge ajustado al texto y centrado */
.badges {
    display: table; /* Truco para centrar elementos fit-content antiguos, o usa inline-block */
    display: inline-block; /* Asegura que no sea bloque completo */
    width: fit-content;    /* CLAVE: Se ajusta exactamente al ancho del texto */
    margin-left: auto;     /* Centrado automático a la izquierda */
    margin-right: auto;    /* Centrado automático a la derecha */
    margin-bottom: 25px;
    
    /* Estilos visuales */
    color: #48E08F; 
    border: 1px solid rgba(72, 224, 143, 0.3);
    background: rgba(72, 224, 143, 0.1);
    padding: 8px 24px; /* Un poco más de aire a los lados */
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* MARQUEE */
.marquee-section {
    padding: 40px 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.tech-item {
    display: inline-block;
    margin: 0 40px;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* SERVICIOS */
.services, .portfolio, .latest-news {
    padding: 100px 5%;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header span { color: var(--cyan-neon); }

.subtitle { color: var(--text-gray); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.bento-card:hover {
    border-color: var(--blue-neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bento-card.wide { 
    grid-column: span 1; 
}

@media (min-width: 768px) {
    .bento-card.wide { grid-column: span 2; }
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--blue-neon), var(--green-mint));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.bento-card p { color: var(--text-gray); font-size: 0.95rem; }

/* PORTFOLIO (FIXED GRID: 3 columns strict) */
.project-grid {
    display: grid;
    grid-template-columns: 1fr; /* Móvil: 1 columna */
    gap: 30px;
}

/* Tablet: 2 columnas */
@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columnas (ESTRICTO) */
@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    border: 1px solid transparent;
    transition: 0.3s;
    height: 100%; /* Asegura altura consistente */
}

.project-card:hover {
    border-color: var(--blue-neon);
    transform: translateY(-5px);
}

.project-img {
    width: 100%;
    height: 250px;
    background-color: #222;
    object-fit: cover;
    transition: transform 0.5s;
    opacity: 0.8;
}

.project-card:hover .project-img {
    transform: scale(1.05);
    opacity: 1;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.project-tag {
    font-size: 0.8rem;
    color: var(--green-mint);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-info h3 {
    color: white;
    margin-top: 5px;
}

/* BLOG */
.latest-news { background: #0a0a0a; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.news-card:hover { border-color: var(--green-mint); }

.news-date { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 10px; display: block;}
.news-title { font-size: 1.2rem; margin-bottom: 10px; }
.news-excerpt { color: #888; font-size: 0.9rem; }

.center-btn {
    margin-top: 30px; 
    text-align: center;
}

.btn-link { color: var(--blue-neon); font-weight: 600; font-size: 0.9rem; }

/* FOOTER */
footer {
    padding: 60px 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-gray);
}

.footer-loc { margin: 20px 0; }

/* MOBILE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; }
}

/* --- NUEVO DISEÑO DE SERVICIOS (Dark Modern) --- */

.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.modern-card {
    background: #121212; /* Fondo Oscuro de nuevo */
    padding: 40px 30px;
    border-radius: 24px;
    /* Sombra sutil para separarlo del fondo principal */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    /* Borde muy fino y sutil */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue-neon); /* El borde se ilumina azul al pasar el mouse */
    box-shadow: 0 20px 50px rgba(72, 156, 224, 0.15);
}

/* Contenedor del icono (Fondo oscuro un poco más claro) */
.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-card:hover .icon-wrapper {
    background: rgba(72, 156, 224, 0.15); /* Fondo azulado en hover */
    border-color: var(--blue-neon);
    transform: scale(1.1) rotate(5deg);
}

.card-icon {
    font-size: 2rem;
}

/* Títulos blancos */
.modern-card h3 {
    color: #ffffff; 
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* Texto descriptivo gris claro */
.modern-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Decoración superior brillante */
.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0.5; /* Siempre visible pero sutil */
    transition: opacity 0.3s;
}

.modern-card:hover::before {
    opacity: 1;
    height: 4px; /* Crece un poco en hover */
}

.text-gradient {
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- ESTILOS UNIFICADOS DE BLOG (Cards) --- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: var(--bg-card); /* Fondo oscuro #121212 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Para que todas tengan la misma altura */
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue-neon);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Imagen del post */
.article-img {
    width: 100%;
    height: 220px; /* Altura fija para uniformidad */
    object-fit: cover;
    background: #1a1a1a; /* Color de fondo mientras carga */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Contenido del texto */
.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Etiqueta de Categoría */
.badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(72, 156, 224, 0.15);
    color: var(--blue-neon);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    width: fit-content;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: white;
    font-weight: 700;
}

.article-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1; /* Empuja el botón hacia abajo */
}

.read-more {
    color: var(--green-mint);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px; /* Pequeña animación al pasar el mouse */
}

.blog-grid-page{
    margin-top: 2%;
}

/* Ajuste para logo de imagen */
/* Busca o agrega esto en tu style.css */

.logo img {
    height: 100px; /* Antes era 50px. Prueba con 80px o 90px */
    width: auto;  /* Esto asegura que no se deforme */
    transition: transform 0.3s;
}

/* Estilo para los textos destacados del Marquee */
.tech-item.highlight {
    color: #489CE0; /* Tu color celeste principal */
    font-weight: 800;
    text-shadow: 0 0 15px rgba(72, 156, 224, 0.3); /* Brillo suave */
}

/* --- AJUSTES SERVICIOS 3 COLUMNAS (Lista Detallada) --- */

/* Forzamos 3 columnas en escritorio para que se vea equilibrado */
@media (min-width: 1024px) {
    .modern-grid.three-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- ESTILOS NUEVOS DE SERVICIOS POR CATEGORÍA --- */

/* Títulos de las secciones (WordPress, Código, Otros) */
.category-title {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--blue-neon); /* Línea decorativa a la izquierda */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ajustes del Grid */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Tarjetas un poco más compactas */
    gap: 20px;
}

/* Títulos dentro de las tarjetas (H4) */
.modern-card h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* --- EFECTO HOVER POTENCIADO (Borde Celeste) --- */
.modern-card {
    /* ... propiedades base anteriores ... */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    
    /* BORDE MÁS FUERTE Y BRILLANTE */
    border: 1px solid var(--blue-neon); 
    box-shadow: 0 0 20px rgba(72, 156, 224, 0.4); /* Resplandor celeste */
    
    background: #1a1a1a; /* Un fondo un pelín más claro al pasar el mouse */
}

/* --- ESTILOS DE CATEGORÍAS Y TARJETAS --- */

/* Contenedor de cada categoría */
.service-category {
    margin-bottom: 80px; /* Espacio entre bloques grandes */
}

/* Título H2 de cada Categoría */
.category-heading {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 5px solid var(--blue-neon); /* Línea celeste a la izquierda */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid General (4 columnas por defecto en PC) */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Grid específico para la última sección de 3 items */
@media (min-width: 1024px) {
    .modern-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- ESTILO DE LA TARJETA --- */
.modern-card {
    background: #121212;
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

/* EFECTO HOVER (Borde Celeste) */
.modern-card:hover {
    transform: translateY(-7px);
    border: 1px solid var(--blue-neon); /* Borde celeste brillante */
    box-shadow: 0 0 25px rgba(72, 156, 224, 0.25); /* Resplandor celeste */
    background: #151515; /* Fondo ligeramente más claro */
}

/* Icono dentro de la tarjeta */
.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}

.modern-card:hover .icon-wrapper {
    background: rgba(72, 156, 224, 0.2); /* Fondo del icono se pone azulado */
    transform: scale(1.1);
}

.card-icon {
    font-size: 1.8rem;
}

.modern-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.modern-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- SECCIÓN BENEFICIOS (Imagen + Texto) --- */

.benefits-section {
    padding: 100px 5%;
    background: #080808; /* Ligeramente diferente al fondo principal para separar visualmente */
    position: relative;
}

/* --- AJUSTE DE ALTURA IGUALADA (Imagen y Texto) --- */

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    /* CAMBIO CLAVE 1: 'stretch' hace que ambas columnas midan lo mismo */
    align-items: stretch; 
}

/* Media Query para Escritorio */
@media (min-width: 900px) {
    .benefits-container {
        grid-template-columns: 1fr 1fr;
    }
}

.benefits-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    /* CAMBIO CLAVE 2: Ocupar el 100% de la altura de la columna */
    height: 100%;
    min-height: 400px; /* Altura mínima de seguridad */
}

.benefits-img-wrapper img {
    width: 100%;
    /* CAMBIO CLAVE 3: Forzar altura y recortar para no deformar */
    height: 100%;
    object-fit: cover; 
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}


.benefits-img-wrapper img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Efecto de brillo detrás de la imagen */
.glow-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 20px;
    opacity: 0.2;
    filter: blur(20px);
    z-index: 1;
}

/* Estilos del Texto */
.benefits-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    line-height: 1.2;
    color: white;
}

.benefit-item {
    margin-bottom: 30px;
}

.benefit-item h3 {
    color: var(--blue-neon); /* Títulos en celeste */
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item .icon {
    font-size: 1.5rem;
}

.benefit-item p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-left: 0; /* Opcional: puedes ponerle margen si quieres identar */
}

/* Caja de cierre (Pregunta final) */
.benefits-cta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cta-question {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-style: italic;
}

/* --- SECCIÓN FAQ (ACORDEÓN) --- */
.faq-section {
    padding: 100px 5%;
    background: #050505; /* Mismo fondo que el body */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Títulos de las categorías dentro del FAQ */
.faq-category-title {
    color: var(--green-mint); /* Verde para diferenciar bloques */
    font-size: 1.4rem;
    margin-bottom: 20px;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--blue-neon);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer p {
    padding: 20px 0;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Clase activa que abre el acordeón (JS) */
.faq-item.active .faq-answer {
    max-height: 300px; /* Altura suficiente para el texto */
}

.faq-item.active .arrow {
    transform: rotate(180deg);
    color: var(--blue-neon);
}

.arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 2000; /* Para que esté siempre encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background-color: #20bd5a;
}

.whatsapp-icon-float {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Animación de latido suave */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ajuste para móviles (un poco más pequeño y pegado al borde) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon-float {
        width: 30px;
        height: 30px;
    }
}

/* --- FOOTER PRINCIPAL (Dark Tech) --- */

.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 5% 20px;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Grid flexible de 4 columnas */
    gap: 40px;
    margin-bottom: 60px;
}

/* ESTILO DEL LOGO (IMAGEN) */
.footer-logo-img {
    display: block;
    height: 70px; /* Tamaño grande pero equilibrado para el footer */
    width: auto;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 280px;
}

/* Títulos de Columnas */
.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Enlaces */
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--blue-neon);
    padding-left: 5px;
}

/* Iconos Sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--blue-neon);
    transform: translateY(-3px);
}

/* Contacto */
.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.footer-contact a:hover { color: var(--green-mint); }

/* Barra inferior */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        text-align: center;
    }
    .footer-logo-img { margin: 0 auto 20px auto; } /* Centrar logo en móvil */
    .social-links { justify-content: center; }
    .footer-contact li { justify-content: center; }
    .footer-desc { margin: 0 auto 25px auto; }
}

/* --- AJUSTES FINALES DE ALINEACIÓN FOOTER --- */

/* 1. Primera Columna (Logo y Redes): Alineación forzada a la izquierda */
.footer-col:first-child {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Redes sociales a la izquierda */
.footer-col:first-child .social-links {
    justify-content: flex-start;
}

/* 2. Última Columna (Contacto): Alineación a la derecha (SOLO ESCRITORIO) */
@media (min-width: 1024px) {
    .footer-col:last-child {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    /* Los items de contacto se alinean a la derecha e invierten el orden (Texto - Icono) */
    .footer-col:last-child .footer-contact li {
        justify-content: flex-end;
        flex-direction: row-reverse; 
    }

    /* Ajuste de margen para el icono cuando está a la derecha */
    .footer-col:last-child .footer-contact li .icon {
        margin-left: 10px;
        margin-right: 0;
    }
}

/* 3. Móvil: Mantenemos todo centrado (ya estaba, pero reforzamos) */
@media (max-width: 768px) {
    .footer-col:first-child, 
    .footer-col:last-child {
        align-items: center;
        text-align: center;
    }
    .footer-col:first-child .social-links {
        justify-content: center;
    }
    .footer-col:last-child .footer-contact li {
        justify-content: center;
        flex-direction: row; /* Vuelve al orden normal en móvil */
    }
    .footer-col:last-child .footer-contact li .icon {
        margin-left: 0;
        margin-right: 10px;
    }
}