/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #14193D;
    background: #EDE9D1;
    min-height: 100vh;
}

/* Header y Navegación */
.header {
    background: linear-gradient(135deg, #14193D 0%, #0018CD 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(20, 25, 61, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .logo i {
        color: #bbe1fa; /* Un azul claro para que contraste con el fondo oscuro */
        transition: transform 0.3s ease;
    }

    .logo:hover i {
        transform: scale(1.1);
    }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
        padding: 0.5rem 1rem;
        border-radius: 6px;
    }

        .nav-links a:hover {
            background: rgba(255, 255, 255, 0.2);
        }

/* Contenedor principal y Layout de Anuncios */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    width: 100%;
}

.ad-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}


.ad-space {
    background: white;
    border: 2px dashed #90caf9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #1976d2;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.1);
}

.ad-space-300-250 {
    min-height: 250px;
}

.ad-space-300-600 {
    min-height: 600px;
}



/* Contenido Estático (About, Privacy, etc.) */
.static-content-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(25, 118, 210, 0.1);
}

    .static-content-card h1 {
        color: #0d47a1;
        margin-bottom: 1.5rem;
        font-size: 2.5rem;
    }

    .static-content-card h2 {
        color: #1565c0;
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-size: 1.8rem;
    }

    .static-content-card h3 {
        color: #1565c0;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-size: 1.3rem;
    }

    .static-content-card p, .static-content-card li {
        color: #37474f;
        margin-bottom: 1.25rem;
        line-height: 1.8;
    }

    .static-content-card ul, .static-content-card ol {
        margin-left: 2rem;
        margin-bottom: 1.5rem;
    }

    .static-content-card a {
        color: #1976d2;
        text-decoration: none;
    }

        .static-content-card a:hover {
            text-decoration: underline;
        }

/* Footer */
.footer {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: white;
}

    .footer a {
        color: #90caf9;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer a:hover {
            color: white;
        }


/* Diseño Responsivo */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        position: static;
        order: -1; /* Mueve los anuncios al principio en móvil */
        margin-bottom: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}
/* <-- ESTE CORCHETE AHORA CIERRA CORRECTAMENTE LA MEDIA QUERY */

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .static-content-card {
        padding: 1.5rem;
    }

        .static-content-card h1 {
            font-size: 2rem;
        }
}
/* <-- ESTE CORCHETE AHORA CIERRA CORRECTAMENTE LA MEDIA QUERY */





/* === ESTILOS DEFINITIVOS PARA LA SECCIÓN DE RESULTADOS === */

.results-grid {
    display: grid;
    gap: 0.75rem; /* Espacio compacto entre tarjetas */
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 2px solid #e3f2fd;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .result-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(25, 118, 210, 0.15);
        border-color: #90caf9;
    }

.result-label {
    font-weight: 600;
    color: #1565c0;
    flex-basis: 160px; /* Ancho fijo para la etiqueta */
    flex-shrink: 0; /* Evita que se encoja */
    font-size: 0.9rem;
    text-align: right;
    border-right: 2px solid #e3f2fd;
    padding-right: 1rem;
}

.result-text-wrapper {
    flex-grow: 1; /* Ocupa el espacio restante */
    /*overflow-x: auto;*/ /* AÑADE SCROLL HORIZONTAL SI ES NECESARIO */
    /*white-space: nowrap;*/ /* MANTIENE EL TEXTO EN UNA SOLA LÍNEA */
    background: #f8fbff;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    min-width: 0; /* SOLUCIÓN: Permite que el elemento se encoja y el overflow funcione */
}

    /* Estilo opcional para la barra de scroll */
    .result-text-wrapper::-webkit-scrollbar {
        height: 5px;
    }

    .result-text-wrapper::-webkit-scrollbar-thumb {
        background: #cddff8;
        border-radius: 10px;
    }

.result-text {
    font-size: 1.1rem;
    color: #1e3a5f;
    font-family: 'Segoe UI Symbol', 'Arial Unicode MS', sans-serif;
    /* Las propiedades de desbordamiento ahora están en el wrapper */
    word-break: break-all; /* <-- ESTA LÍNEA FUERZA AL TEXTO A ROMPERSE PARA CABER EN LA CAJA */
}

.copy-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    flex-shrink: 0; /* Evita que el botón se encoja */
}

    .copy-btn:hover {
        background: #1565c0;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
    }

    .copy-btn.copied {
        background: #4caf50;
    }
}
