:root {
    --pink: #FF579A;
    --glow: rgba(255, 0, 85, 0.25); /* Sombra suavizada para reducir el costo de procesamiento */
    --bg: #06070a;
}

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

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100vw;
    background: var(--bg); 
    color: #ffffff; 
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fondo optimizado sin impacto en el scroll */
.mesh-bg {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: radial-gradient(circle at 5% 5%, rgba(255, 0, 85, 0.12), transparent 40%),
                radial-gradient(circle at 95% 95%, rgba(0, 229, 255, 0.08), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative;
}

header { 
    padding: 40px 0; 
    text-align: center; 
}

.logo { 
    font-weight: 900; 
    font-size: 1.8rem; 
    color: #fff; 
    text-decoration: none; 
    letter-spacing: 2px; 
}

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

.hero { 
    text-align: center; 
    margin: 20px 0 50px; 
    width: 100%; 
}

.hero h1 { 
    font-size: clamp(2.2rem, 8vw, 3.8rem); 
    font-weight: 900; 
    letter-spacing: -2px; 
    line-height: 1;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero p { 
    color: #888; 
    margin-top: 15px; 
    font-size: 1.1rem; 
}

.hero b { 
    color: var(--pink); 
}

.hero-main {
    text-align: center;
    margin-bottom: 20px;
}

.main-header {
    text-align: center;
    padding: 30px 0;
}

.action-spacing {
    text-align: center;
    margin-top: 50px;
}

/* Grid de respuesta fluida */
.grid-estados { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    margin-bottom: 60px;
    width: 100%; 
}

/* Tarjetas con protección anti-CLS */
.card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; 
    padding: 20px; 
    text-decoration: none; 
    color: #fff;
    display: flex; 
    align-items: center; 
    gap: 15px; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                background 0.3s ease, 
                box-shadow 0.3s ease;
    min-height: 110px;
    content-visibility: auto; /* Optimiza el renderizado de tarjetas fuera de pantalla */
}

.card:hover { 
    border-color: var(--pink); 
    background: rgba(255, 0, 85, 0.05); 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card .icon { 
    font-size: 2rem; 
    flex-shrink: 0; /* Evita que el emoji se deforme si el texto es largo */
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h3 { 
    font-size: 0.95rem; 
    font-weight: 800; 
    text-transform: uppercase; 
}

.card .status { 
    color: #00ff88; 
    font-size: 0.75rem; 
    font-weight: 800; 
    display: block; 
    margin-top: 2px; 
}

.card-title-seo { 
    font-weight: bold; 
    font-size: 1.1rem; 
    color: #fff; 
    margin-bottom: 3px; 
    display: block; 
}

.distancia-tag { 
    color: #ffbc00; 
    font-size: 0.8rem; 
    font-weight: bold; 
    margin-top: 3px; 
    display: block; 
}

/* Contenedor del Chat */
.chat-wrapper { 
    width: 100%; 
    height: 85vh; 
    min-height: 500px;
    border-radius: 25px; 
    overflow: hidden; 
    border: 2px solid var(--pink); 
    box-shadow: 0 0 30px var(--glow); 
    background: #000;
    margin: 20px 0;
}

iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
    display: block; 
}

.action-bar { 
    text-align: center; 
    margin: 30px 0; 
}

.btn-back { 
    display: inline-block; 
    padding: 15px 40px; 
    border-radius: 50px; 
    background: var(--pink); 
    color: #fff; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 0.85rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px var(--glow);
}

.btn-back:hover {
    transform: translateY(-2px);
}

.btn-back-dark {
    background: #1a1b20;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back-dark:hover {
    background: #25262d;
    border-color: var(--pink);
}

.section-title { 
    margin: 50px 0 25px; 
    text-align: left; 
    font-size: 1.3rem; 
    border-left: 5px solid var(--pink); 
    padding-left: 15px;
    text-transform: uppercase;
    font-weight: 900;
}

.chat-action { 
    text-align: center; 
    margin: 40px 0; 
}

.status-online { 
    color: #00ff00; 
    font-size: 0.95rem; 
    margin-top: 15px; 
    font-weight: bold; 
}

/* Botón de Entrada con aceleración de GPU */
.btn-entrar {
    display: inline-block;
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 75, 43, 0.3);
    animation: pulse 2s infinite;
    will-change: transform; /* Fuerza la renderización por GPU para mantener los 60 FPS */
}

.btn-entrar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 75, 31, 0.7);
}

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

/* Sección de Contenido SEO */
.seo-content {
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #333;
    line-height: 1.8;
    color: #ddd;
    font-size: 1.05rem;
}

.seo-content h2 {
    margin: 30px 0 20px;
    color: var(--pink);
    font-size: 1.5rem;
}

.seo-content p {
    margin-bottom: 15px;
}

.seo-content ul {
    margin-left: 20px;
}

.content-block { 
    margin-bottom: 25px; 
    margin-top: 25px; 
}

.nota-personalizada {
    font-style: italic;
    color: #ffbc00;
    margin-bottom: 25px;
}

.local-data {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--pink);
}

.local-data h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.local-data ul {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.local-data ul li {
    margin-bottom: 8px;
}

/* Sección FAQ */
.faq-visible {
    margin-top: 50px;
    padding: 30px;
    border-top: 1px solid #333;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

.faq-visible h2 {
    text-align: center;
    color: var(--pink);
    margin-bottom: 30px;
}

.faq-block {
    margin-bottom: 25px;
}

.faq-block h3 {
    font-size: 1.2rem;
    color: #ffbc00;
    margin-bottom: 10px;
}

.faq-block p {
    color: #ddd;
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    margin: 10px 0 20px 0;
    color: #9aa0a6;
}

.breadcrumb a {
    color: #66b3ff; 
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(77, 163, 255, 0.1);
    transition: all 0.2s ease;
}

.breadcrumb a:hover {
    background: rgba(77, 163, 255, 0.22);
    color: #ffffff;
}

.breadcrumb .sep {
    color: #555;
    font-size: 16px;
}

.breadcrumb span:last-child {
    color: #ffffff;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.section-description {
    margin-bottom: 20px;
    font-size: 15px;
    color: #bdbdbd;
    line-height: 1.5;
}

/* Footer */
footer { 
    margin-top: 80px; 
    padding: 40px 0; 
    border-top: 1px solid #333; 
    text-align: center; 
    color: #ddd;
    font-size: 0.75rem; 
    letter-spacing: 3px;
}

footer p {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffbc00;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Media Queries Líquidas */
@media (max-width: 1024px) {
    .grid-estados { grid-template-columns: repeat(3, 1fr); } 
    .chat-wrapper { height: 75vh; }
}

@media (max-width: 768px) {
    .grid-estados { grid-template-columns: repeat(2, 1fr); } 
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 480px) { 
    .grid-estados { 
        grid-template-columns: 1fr; 
        gap: 10px; 
    } 
    .hero h1 { font-size: 2.2rem; }
    .chat-wrapper { 
        height: 70vh; 
        min-height: 400px;
        border-radius: 15px;
    }
    .container { padding: 0 15px; } 
    .hero p { font-size: 0.9rem; }
}